Hello people,
am I taking crazy pills? I have the following code:
Which produces the following (truncated output)
That's right, when val gets to 150, after the next val++; val is then equal to 381772. This is only my 8th year of using teensys in fairly elaborate projects and I have never seen this behavior before. what the hell is happening? I'm thinking there must be something that I corrupted about my programming environment (I used platformio on the command line).
am I taking crazy pills? I have the following code:
Code:
int val = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
val++;
Serial.println(val);
}
Code:
1
2
3
4
5
.
.
.
.
147
148
149
150
381772
381773
381774
381775
381776
.
.
.
That's right, when val gets to 150, after the next val++; val is then equal to 381772. This is only my 8th year of using teensys in fairly elaborate projects and I have never seen this behavior before. what the hell is happening? I'm thinking there must be something that I corrupted about my programming environment (I used platformio on the command line).
Last edited: