Hello,
I found a problem that make the µC behave different depending the "optimize" option one use. This happen with "sprintf" command.
If I use "Faster", all behave as expected. Serial console display 1.00000
If I use "Smallest Code with LTO", nothing happen. Serial console display nothing.
Just something that make me was many time ;-)
I'm sure this is an Arduino thing and not a PJRC thing, but I don't know how to get in touch with Arduino devs.
Best regards,
Manu
I found a problem that make the µC behave different depending the "optimize" option one use. This happen with "sprintf" command.
Code:
float exemple = 1.;
void setup() {
char test[200];
Serial.begin (115200);
while ((!Serial) && (millis() < 500) );
sprintf (test, "%f", exemple);
Serial.write (test, strlen(test));
Serial.println();
}
void loop() {
// put your main code here, to run repeatedly:
}
If I use "Faster", all behave as expected. Serial console display 1.00000
If I use "Smallest Code with LTO", nothing happen. Serial console display nothing.
Just something that make me was many time ;-)
I'm sure this is an Arduino thing and not a PJRC thing, but I don't know how to get in touch with Arduino devs.
Best regards,
Manu