defragster
Senior Member+
Why would this HALT the Teensy 3.1:
I had a longer example that worked for some repetitions { growing the string to over 80KB } - however in going for a shorter sample once I Printed the string as shown below to clarify this example it HALTS in the FIRST concatenation before printing : " HELLO WORLD !!!!!"
Here is the Full debug output:
onestring += onestring;
I had a longer example that worked for some repetitions { growing the string to over 80KB } - however in going for a shorter sample once I Printed the string as shown below to clarify this example it HALTS in the FIRST concatenation before printing : " HELLO WORLD !!!!!"
Code:
String onestring = "1234567890";
void setup() {
while (!Serial && (millis () <= 3000));
Serial.print( "\n\n");
[B] Serial.print( onestring ); [/B]
Serial.println( "<<< A");
Serial.print( "1 += 1");
[B] onestring += onestring;[/B]
Serial.print( " HELLO WORLD !!!!!" );
}
void loop() {
}
Here is the Full debug output:
1234567890<<< A
1 += 1