Skip to content

Commit cfb6d50

Browse files
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.
1 parent a0d2a7a commit cfb6d50

14 files changed

+90
-90
lines changed

libraries/esp8266/examples/I2STransmit/I2STransmit.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void setup() {
6464
}
6565

6666
void loop() {
67-
static int cnt = 0;
67+
static uint32_t cnt = 0;
6868
// Each loop will send 100 raw samples (400 bytes)
6969
// UDP needs to be < TCP_MSS which can be 500 bytes in LWIP2
7070
for (int i = 0; i < 100; i++) {
@@ -75,6 +75,6 @@ void loop() {
7575
udp.endPacket();
7676
cnt++;
7777
if ((cnt % 100) == 0) {
78-
Serial.printf("%d\n", cnt);
78+
Serial.printf("%" PRIu32 "\n", cnt);
7979
}
8080
}

package/package_esp8266com_index.template.json

+86-86
Large diffs are not rendered by default.
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// Do not edit -- Automatically generated by tools/sdk/ssl/bearssl/Makefile
2-
#define BEARSSL_GIT c0b69df
2+
#define BEARSSL_GIT 6105635

tools/sdk/lib/libbearssl.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libhal.a

0 Bytes
Binary file not shown.

tools/sdk/lib/liblwip2-1460-feat.a

0 Bytes
Binary file not shown.

tools/sdk/lib/liblwip2-1460.a

0 Bytes
Binary file not shown.

tools/sdk/lib/liblwip2-536-feat.a

0 Bytes
Binary file not shown.

tools/sdk/lib/liblwip2-536.a

0 Bytes
Binary file not shown.

tools/sdk/lib/liblwip6-1460-feat.a

0 Bytes
Binary file not shown.

tools/sdk/lib/liblwip6-536-feat.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libstdc++-exc.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libstdc++.a

0 Bytes
Binary file not shown.

tools/sdk/ssl/bearssl

0 commit comments

Comments
 (0)