help wanted
Metriche repository
- Star
- (952 star)
- Metriche merge PR
- (Metriche PR in attesa)
Descrizione
This sketch demonstrates printing to a string using defines of inttypes.h. The PRIu8 isn't interpreted correctly.
void setup() {
Serial.begin(115200);
}
void loop() {
char fmtBuffer[400];
snprintf(fmtBuffer, sizeof(fmtBuffer), "hu=%hu PRIu8=%" PRIu8 " PRIu16=%" PRIu16 " PRIu32=%" PRIu32, 1, 1, 1, 1);
Serial.println(fmtBuffer);
}
Output is:
hu=1 PRIu8=hu PRIu16=1 PRIu32=1