Pages: 1 [2]   Go Down
Author Topic: Reaction time Mega R3 extremely slow  (Read 1581 times)
0 Members and 1 Guest are viewing this topic.
the land of sun+snow
Offline Offline
Faraday Member
**
Karma: 159
Posts: 2927
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

while( 1 ) ;
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 362
Posts: 17307
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

while( 1 ) ;

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

Lefty
Logged

the land of sun+snow
Offline Offline
Faraday Member
**
Karma: 159
Posts: 2927
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

while(1); compiles fine.
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 362
Posts: 17307
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

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.

Logged

Global Moderator
Melbourne, Australia
Online Online
Brattain Member
*****
Karma: 511
Posts: 19360
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

1. wait.
2. go to 1.

Code:
while (true)
  delay (1000);
Logged

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

Please post technical questions on the forum - not to me by personal message. Thanks a lot.

the land of sun+snow
Offline Offline
Faraday Member
**
Karma: 159
Posts: 2927
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

being that it's lefty,
Code:
void setup() {  wait();  }
void loop() { }
void wait() {  while(1) wait(); }
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 11
Every accomplishment starts with the decision to try
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I need the code!
Logged

Global Moderator
Melbourne, Australia
Online Online
Brattain Member
*****
Karma: 511
Posts: 19360
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

All your codes are belong to us.
Logged

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

Please post technical questions on the forum - not to me by personal message. Thanks a lot.

Pages: 1 [2]   Go Up
Jump to: