I’m using Teensy’s Serial.printf functionality (Teensy 3.2). When I build using the Arduino IDE, everything works fine. When I build using PIO (in Atom), floating point support disappears.
Minimal repro:
void setup() {
// put your setup code here, to run once:
Serial.printf("'%s' - This is a string.\n", "Hello world");
Serial.printf("'%d' - This is an integer.\n", 12345);
Serial.printf("'%.2f' - This is a float.\n", 1234.56);
Serial.printf("'%.2f' - This is a rounded float.\n", 1234.56789);
}
void loop() {
// put your main code here, to run repeatedly:
}
Built from Arduino, this outputs the following:
'Hello world' - This is a string.
'12345' - This is an integer.
'1234.56' - This is a float.
'1234.57' - This is a rounded float.
Built from PlatformIO, it outputs the following:
'Hello world' - This is a string.
'12345' - This is an integer.
'' - This is a float.
'' - This is a rounded float.
Has anyone seen this before? Is there some way to make it work with PIO?