[nRF24] Added delay to halting while loops
This commit is contained in:
parent
0023a73069
commit
d3a81e4fa4
4 changed files with 9 additions and 9 deletions
examples/nRF24
nRF24_Receive_Blocking
nRF24_Receive_Interrupt
nRF24_Transmit_Blocking
nRF24_Transmit_Interrupt
|
@ -44,7 +44,7 @@ void setup() {
|
||||||
} else {
|
} else {
|
||||||
Serial.print(F("failed, code "));
|
Serial.print(F("failed, code "));
|
||||||
Serial.println(state);
|
Serial.println(state);
|
||||||
while(true);
|
while (true) { delay(10); }
|
||||||
}
|
}
|
||||||
|
|
||||||
// set receive pipe 0 address
|
// set receive pipe 0 address
|
||||||
|
@ -59,7 +59,7 @@ void setup() {
|
||||||
} else {
|
} else {
|
||||||
Serial.print(F("failed, code "));
|
Serial.print(F("failed, code "));
|
||||||
Serial.println(state);
|
Serial.println(state);
|
||||||
while(true);
|
while (true) { delay(10); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ void setup() {
|
||||||
} else {
|
} else {
|
||||||
Serial.print(F("failed, code "));
|
Serial.print(F("failed, code "));
|
||||||
Serial.println(state);
|
Serial.println(state);
|
||||||
while(true);
|
while (true) { delay(10); }
|
||||||
}
|
}
|
||||||
|
|
||||||
// set receive pipe 0 address
|
// set receive pipe 0 address
|
||||||
|
@ -56,7 +56,7 @@ void setup() {
|
||||||
} else {
|
} else {
|
||||||
Serial.print(F("failed, code "));
|
Serial.print(F("failed, code "));
|
||||||
Serial.println(state);
|
Serial.println(state);
|
||||||
while(true);
|
while (true) { delay(10); }
|
||||||
}
|
}
|
||||||
|
|
||||||
// set the function that will be called
|
// set the function that will be called
|
||||||
|
@ -71,7 +71,7 @@ void setup() {
|
||||||
} else {
|
} else {
|
||||||
Serial.print(F("failed, code "));
|
Serial.print(F("failed, code "));
|
||||||
Serial.println(state);
|
Serial.println(state);
|
||||||
while (true);
|
while (true) { delay(10); }
|
||||||
}
|
}
|
||||||
|
|
||||||
// if needed, 'listen' mode can be disabled by calling
|
// if needed, 'listen' mode can be disabled by calling
|
||||||
|
|
|
@ -40,7 +40,7 @@ void setup() {
|
||||||
} else {
|
} else {
|
||||||
Serial.print(F("failed, code "));
|
Serial.print(F("failed, code "));
|
||||||
Serial.println(state);
|
Serial.println(state);
|
||||||
while(true);
|
while (true) { delay(10); }
|
||||||
}
|
}
|
||||||
|
|
||||||
// set transmit address
|
// set transmit address
|
||||||
|
@ -55,7 +55,7 @@ void setup() {
|
||||||
} else {
|
} else {
|
||||||
Serial.print(F("failed, code "));
|
Serial.print(F("failed, code "));
|
||||||
Serial.println(state);
|
Serial.println(state);
|
||||||
while(true);
|
while (true) { delay(10); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ void setup() {
|
||||||
} else {
|
} else {
|
||||||
Serial.print(F("failed, code "));
|
Serial.print(F("failed, code "));
|
||||||
Serial.println(state);
|
Serial.println(state);
|
||||||
while(true);
|
while (true) { delay(10); }
|
||||||
}
|
}
|
||||||
|
|
||||||
// set transmit address
|
// set transmit address
|
||||||
|
@ -58,7 +58,7 @@ void setup() {
|
||||||
} else {
|
} else {
|
||||||
Serial.print(F("failed, code "));
|
Serial.print(F("failed, code "));
|
||||||
Serial.println(state);
|
Serial.println(state);
|
||||||
while(true);
|
while (true) { delay(10); }
|
||||||
}
|
}
|
||||||
|
|
||||||
// set the function that will be called
|
// set the function that will be called
|
||||||
|
|
Loading…
Add table
Reference in a new issue