We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Hardware: Sparkfun ESP8266 Core Version: master
printf_P doesn't expand varargs correctly:
--- code --- void setup() { Serial.begin(115200); Serial.setDebugOutput(true); delay(10); Serial.println("\nSandbox\n"); printf("String %s\n", "Test"); printf_P(PSTR("String %s\n"), "Test"); }
void loop() { delay(1000); }
--- output --- Sandbox String Test String
Problem lies on line 237 of pgmspace.cpp (https://github.com/esp8266/Arduino/blob/master/cores/esp8266/pgmspace.cpp#L237)
vprintf should be used instead of printf.
The text was updated successfully, but these errors were encountered:
pgmspace: expand varargs correctly in printf_P (#2819)
7a93478
pgmspace: expand varargs correctly in printf_P (esp8266#2819)
019de9c
No branches or pull requests
Basic Infos
Hardware
Hardware: Sparkfun ESP8266
Core Version: master
Description
printf_P doesn't expand varargs correctly:
--- code ---
void setup() {
Serial.begin(115200);
Serial.setDebugOutput(true);
delay(10);
Serial.println("\nSandbox\n");
printf("String %s\n", "Test");
printf_P(PSTR("String %s\n"), "Test");
}
void loop() {
delay(1000);
}
--- output ---
Sandbox
String Test
String
Problem lies on line 237 of pgmspace.cpp (https://github.com/esp8266/Arduino/blob/master/cores/esp8266/pgmspace.cpp#L237)
vprintf should be used instead of printf.
The text was updated successfully, but these errors were encountered: