mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-02 14:22:55 +03:00
Fix PRxxx printf format macros (#8222)
* Fix PRxxx printf format macros Update toolchain (newlib) to supply proper definitions for PRxxx macros. Fixes #8220 Added a PRxxx macro to an example to ensure CI will catch any problem like this in the future.
This commit is contained in:
committed by
GitHub
parent
a0d2a7a8a7
commit
cfb6d50844
@ -64,7 +64,7 @@ void setup() {
|
||||
}
|
||||
|
||||
void loop() {
|
||||
static int cnt = 0;
|
||||
static uint32_t cnt = 0;
|
||||
// Each loop will send 100 raw samples (400 bytes)
|
||||
// UDP needs to be < TCP_MSS which can be 500 bytes in LWIP2
|
||||
for (int i = 0; i < 100; i++) {
|
||||
@ -75,6 +75,6 @@ void loop() {
|
||||
udp.endPacket();
|
||||
cnt++;
|
||||
if ((cnt % 100) == 0) {
|
||||
Serial.printf("%d\n", cnt);
|
||||
Serial.printf("%" PRIu32 "\n", cnt);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user