[Stream] Added delay to halting while loops
This commit is contained in:
parent
406197e667
commit
b34be58e1a
2 changed files with 3 additions and 3 deletions
|
@ -51,7 +51,7 @@ void setup() {
|
|||
} else {
|
||||
Serial.print(F("failed, code "));
|
||||
Serial.println(state);
|
||||
while (true);
|
||||
while (true) { delay(10); }
|
||||
}
|
||||
|
||||
// set the function that will be called
|
||||
|
@ -69,7 +69,7 @@ void setup() {
|
|||
} else {
|
||||
Serial.print(F("failed, code "));
|
||||
Serial.println(state);
|
||||
while (true);
|
||||
while (true) { delay(10); }
|
||||
}
|
||||
|
||||
// if needed, 'listen' mode can be disabled by calling
|
||||
|
|
|
@ -65,7 +65,7 @@ void setup() {
|
|||
} else {
|
||||
Serial.print(F("failed, code "));
|
||||
Serial.println(state);
|
||||
while (true);
|
||||
while (true) { delay(10); }
|
||||
}
|
||||
|
||||
// set the function that will be called
|
||||
|
|
Loading…
Add table
Reference in a new issue