Arduino stops uploading

Hi,

Can anyone verify for me, that trying to upload a program to Arduino MEGA or maybe any Arduino, the upload stops if the code contains a constant string including !!! ?

like this small one will fail:

// Upload will never end
void setup() {
  String A = "!!!";
}

void loop() {
}

 

this one will finish:

// Upload will finish
void setup() {
String A = "aaa";
}

void loop() {
}

 

…and better don’t use a F

Lately OddBot reported another issue caused by a simple string. Not inside brackets like yours but when used as a first letter for a function name. See here.

In lieu of spaces in between,

what happens if you replace the actual characters with ASCII calls?

@Bird: Ill try replace them

@Bird: Ill try replace them with ASCII codes tonight.

@Maxhirez: Its not a show stopper with the !!!, I wrote a warning message I wanted to send with serial “Battery low!!!” and then every thing stopped working.

@OddBot: I have an MKII ISP programmer, but it looks like I’m not alone. :slight_smile: