Skip to content

Commit f16c142

Browse files
committed
Fix compiler warnings
1 parent 6109f6f commit f16c142

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

VanLiveConnect/WebSocket.ino

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ void SendQueuedJson(uint32_t id)
202202

203203
#ifdef DEBUG_WEBSOCKET
204204
Serial.printf_P(
205-
PSTR("%s[webSocket %lu] Sent stored %zu-byte packet no. '%d'\n"),
205+
PSTR("%s[webSocket %" PRIu32 "] Sent stored %zu-byte packet no. '%d'\n"),
206206
TimeStamp(),
207207
id,
208208
strlen(entry->packet),
@@ -328,7 +328,7 @@ bool SendJsonOnWebSocket(const char* json, bool saveForLater, bool isTestMessage
328328
if (! isTestMessage)
329329
#endif
330330
Serial.printf_P(
331-
PSTR("%s[webSocket %lu] Sent %zu-byte packet\n"),
331+
PSTR("%s[webSocket %" PRIu32 "] Sent %zu-byte packet\n"),
332332
TimeStamp(),
333333
id,
334334
strlen(json)
@@ -670,13 +670,14 @@ void WebSocketEvent(
670670
} // if
671671

672672
#ifdef DEBUG_WEBSOCKET
673-
Serial.printf_P(PSTR("%s[webSocket] id_1=%lu, id_2=%lu\n"), TimeStamp(), websocketId_1, websocketId_2);
673+
Serial.printf_P(PSTR("%s[webSocket] id_1=%" PRIu32 ", id_2=%" PRIu32 "\n"),
674+
TimeStamp(), websocketId_1, websocketId_2);
674675
#endif // DEBUG_WEBSOCKET
675676
}
676677
else
677678
{
678679
#if DEBUG_WEBSOCKET >= 2
679-
Serial.printf_P(PSTR("%s[webSocket %lu] received text: '%s'\n"), TimeStamp(), id, data);
680+
Serial.printf_P(PSTR("%s[webSocket %" PRIu32 "] received text: '%s'\n"), TimeStamp(), id, data);
680681
#endif // DEBUG_WEBSOCKET >= 2
681682
} // if
682683

0 commit comments

Comments
 (0)