Seeed-Studio / ArduinoCore-samd

49 stars 27 forks source link

Serial.printf("%f") not working on PlatformIO #43

Closed matsujirushi closed 3 years ago

matsujirushi commented 3 years ago

same situation on PlatformIO. -> https://github.com/Seeed-Studio/ArduinoCore-samd/issues/8

image

matsujirushi commented 3 years ago

Quick solution.

platformio.ini:

build_flags =
    -Wl,-u,_printf_float
    -Wl,-u,_scanf_float

image