Corrupted variables?


   i've got misbehaving code. here's relevant excerpt:


b2[3]=0;
    serial.println(cmd);
  b2[4]=0;
    serial.println(cmd);

"cmd" changes 4 0 in above lines. thought might out of sram variable space, slashed resource requirements under 2k & i'm still getting same thing. what's going on?

cmd allocated on stack , b2 has replaced it.


Arduino Forum > Using Arduino > Programming Questions > Corrupted variables?


arduino

Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support