format strings in printf/sprintf in freertos sdk not working
Posted: Sat Apr 18, 2015 6:27 pm
hi,
i've got some code (simplified) like:
all i get on the serial port is 2 spaces and a newline (no "32 255 255" as expected).
sprintf is doing the same thing.
this was working fine in the non-freertos sdk.
any ideas why this is? i'm completely stumped why sprintf and printf aren't working properly.
i'm using the esp-open-sdk gcc compiler if that matters.
thanks,
-matt
i've got some code (simplified) like:
Code: Select all
LOCAL uint8_t sensors[] = { 0x20, 0x21 };
uint16_t readingBytes[2] = {0x00FF, 0x00FF};
uint8_t x = 0;
printf("%i %i %i\n", sensors[x], readingBytes[0], readingBytes[1]);
all i get on the serial port is 2 spaces and a newline (no "32 255 255" as expected).
sprintf is doing the same thing.
this was working fine in the non-freertos sdk.
any ideas why this is? i'm completely stumped why sprintf and printf aren't working properly.
i'm using the esp-open-sdk gcc compiler if that matters.
thanks,
-matt