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?
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
Post a Comment