Go Down

Topic: Reaction time Mega R3 extremely slow (Read 1 time) previous topic - next topic


retrolefty


while( 1 ) ;


Warning bug! I suspect you were suggesting I should just while(1) {}

Lefty

oric_dan

.... . .-.. .--.   -- .

while(1); compiles fine.

retrolefty


.... . .-.. .--.   -- .

while(1); compiles fine.

That is why a called it a bug not an error, it doesn't end up waiting for any length of time.


Nick Gammon

Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

oric_dan

being that it's lefty,
Code: [Select]

void setup() {  wait();  }
void loop() { }
void wait() {  while(1) wait(); }

lantz_tristan


Nick Gammon

Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Go Up