Go Down

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

oric_dan


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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy