%zu fails on esp-idf, use uint16_t and %u instead

This commit is contained in:
fvanroie 2021-04-28 03:18:17 +02:00
parent ef00c60238
commit a877e2750a
5 changed files with 5 additions and 5 deletions

View File

@ -584,7 +584,7 @@ void dispatch_parse_jsonl(std::istream& stream)
#endif #endif
{ {
uint8_t savedPage = haspPages.get(); uint8_t savedPage = haspPages.get();
size_t line = 1; uint16_t line = 1;
DynamicJsonDocument jsonl(MQTT_MAX_PACKET_SIZE / 2 + 128); // max ~256 characters per line DynamicJsonDocument jsonl(MQTT_MAX_PACKET_SIZE / 2 + 128); // max ~256 characters per line
DeserializationError jsonError = deserializeJson(jsonl, stream); DeserializationError jsonError = deserializeJson(jsonl, stream);

View File

@ -87,7 +87,7 @@
#define D_DISPATCH_REBOOT "Rebooting the MCU now!" #define D_DISPATCH_REBOOT "Rebooting the MCU now!"
#define D_JSON_FAILED "JSON parsing failed:" #define D_JSON_FAILED "JSON parsing failed:"
#define D_JSONL_FAILED "JSONL parsing failed at line %zu" #define D_JSONL_FAILED "JSONL parsing failed at line %u"
#define D_JSONL_SUCCEEDED "Jsonl fully parsed" #define D_JSONL_SUCCEEDED "Jsonl fully parsed"
#define D_OTA_CHECK_UPDATE "Checking updates URL: %s" #define D_OTA_CHECK_UPDATE "Checking updates URL: %s"

View File

@ -87,7 +87,7 @@
#define D_DISPATCH_REBOOT "Az MCU most újraindul!" #define D_DISPATCH_REBOOT "Az MCU most újraindul!"
#define D_JSON_FAILED "JSON elemzése nem sikerült:" #define D_JSON_FAILED "JSON elemzése nem sikerült:"
#define D_JSONL_FAILED "JSONL elemzése meghiúsult a %zu vonalnál" #define D_JSONL_FAILED "JSONL elemzése meghiúsult a %u vonalnál"
#define D_JSONL_SUCCEEDED "JSONL teljes körűen elemezve" #define D_JSONL_SUCCEEDED "JSONL teljes körűen elemezve"
#define D_OTA_CHECK_UPDATE "A frissítések ellenőrzése az URL-en: %s" #define D_OTA_CHECK_UPDATE "A frissítések ellenőrzése az URL-en: %s"

View File

@ -86,7 +86,7 @@
#define D_DISPATCH_REBOOT "De MCU wordt herstart!" #define D_DISPATCH_REBOOT "De MCU wordt herstart!"
#define D_JSON_FAILED "JSON verwerking mislukt:" #define D_JSON_FAILED "JSON verwerking mislukt:"
#define D_JSONL_FAILED "JSONL verwerking mislukt op lijn %zu" #define D_JSONL_FAILED "JSONL verwerking mislukt op lijn %u"
#define D_JSONL_SUCCEEDED "Jsonl volledig verwerkt" #define D_JSONL_SUCCEEDED "Jsonl volledig verwerkt"
#define D_OTA_CHECK_UPDATE "Controle update URL: %s" #define D_OTA_CHECK_UPDATE "Controle update URL: %s"

View File

@ -87,7 +87,7 @@
#define D_DISPATCH_REBOOT "MCU-ul repornește acum!" #define D_DISPATCH_REBOOT "MCU-ul repornește acum!"
#define D_JSON_FAILED "Analiza JSON a eșuat:" #define D_JSON_FAILED "Analiza JSON a eșuat:"
#define D_JSONL_FAILED "Analiza JSONL a eșuat la linia %zu" #define D_JSONL_FAILED "Analiza JSONL a eșuat la linia %u"
#define D_JSONL_SUCCEEDED "Analiza JSONL completă" #define D_JSONL_SUCCEEDED "Analiza JSONL completă"
#define D_OTA_CHECK_UPDATE "Verificare la URL-ul actualizărilor: %s" #define D_OTA_CHECK_UPDATE "Verificare la URL-ul actualizărilor: %s"