diff options
Diffstat (limited to 'platformio/temphum')
-rw-r--r-- | platformio/temphum/src/mqtt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platformio/temphum/src/mqtt.cpp b/platformio/temphum/src/mqtt.cpp index b3305ce..e912f35 100644 --- a/platformio/temphum/src/mqtt.cpp +++ b/platformio/temphum/src/mqtt.cpp @@ -225,7 +225,7 @@ void MQTT::handleAdminOtaPayload(uint16_t packetId, const uint8_t *payload, size return; } - PRINTF("mqtt/ota: starting update, total=%ul\n", total-NODE_SECRET_SIZE); + PRINTF("mqtt/ota: starting update, total=%ul\n", total-CONFIG_NODE_SECRET_SIZE); for (int i = 0; i < MD5_SIZE; i++) { md5Ptr += sprintf(md5Ptr, "%02x", *((unsigned char*)(payload+CONFIG_NODE_SECRET_SIZE+i))); } @@ -282,7 +282,7 @@ void MQTT::handleAdminOtaPayload(uint16_t packetId, const uint8_t *payload, size mcu_led->blink(1, 1); PRINTF("mqtt/ota: updating %u/%u\n", - ota.written - NODE_SECRET_SIZE - MD5_SIZE, + ota.written - CONFIG_NODE_SECRET_SIZE - MD5_SIZE, Update.size()); } else { PRINTF("mqtt/ota: position is invalid, expected %ul, got %ul\n", ota.written, index); |