aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-05-22 06:32:14 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-05-22 06:32:14 +0300
commit6a64c97c799bd4919b46f8dc39d80799bb751ab3 (patch)
tree6740fffa4c1dec742cf906dbead42eb1bf463a45
parent7cf9166dcbbd52d72e795a9e764dfe53462bc94b (diff)
pio/temphum/mqtt: fix a typo
-rw-r--r--platformio/temphum/src/mqtt.cpp4
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);