mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 05:36:37 +00:00
%zu fails on esp-idf, use uint16_t and %u instead
This commit is contained in:
parent
ef00c60238
commit
a877e2750a
@ -584,7 +584,7 @@ void dispatch_parse_jsonl(std::istream& stream)
|
||||
#endif
|
||||
{
|
||||
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
|
||||
DeserializationError jsonError = deserializeJson(jsonl, stream);
|
||||
|
||||
|
@ -87,7 +87,7 @@
|
||||
#define D_DISPATCH_REBOOT "Rebooting the MCU now!"
|
||||
|
||||
#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_OTA_CHECK_UPDATE "Checking updates URL: %s"
|
||||
|
@ -87,7 +87,7 @@
|
||||
#define D_DISPATCH_REBOOT "Az MCU most újraindul!"
|
||||
|
||||
#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_OTA_CHECK_UPDATE "A frissítések ellenőrzése az URL-en: %s"
|
||||
|
@ -86,7 +86,7 @@
|
||||
#define D_DISPATCH_REBOOT "De MCU wordt herstart!"
|
||||
|
||||
#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_OTA_CHECK_UPDATE "Controle update URL: %s"
|
||||
|
@ -87,7 +87,7 @@
|
||||
#define D_DISPATCH_REBOOT "MCU-ul repornește acum!"
|
||||
|
||||
#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_OTA_CHECK_UPDATE "Verificare la URL-ul actualizărilor: %s"
|
||||
|
Loading…
x
Reference in New Issue
Block a user