Mcu32
Well-known member
R.I.P Bob Ross
#1 (More to come)
#1 (More to come)
Code:
#include <Arduino.h>
void incident_1()
{
double d = 1.0 / 3;
//correct:
unsigned char n = 5;
String s1( d, n); Serial.println(s1);
//Happy little crash here:
n = 200;
String s2( d, n); Serial.print(s2);
// just don't use a fixed ( char [40]) )
}
void setup() {
while(!Serial) {;}
incident_1();
}
void loop() {}