diff --git a/examples/nRF24/nRF24_Receive_Blocking/nRF24_Receive_Blocking.ino b/examples/nRF24/nRF24_Receive_Blocking/nRF24_Receive_Blocking.ino index 6ae29bba..b23e5e99 100644 --- a/examples/nRF24/nRF24_Receive_Blocking/nRF24_Receive_Blocking.ino +++ b/examples/nRF24/nRF24_Receive_Blocking/nRF24_Receive_Blocking.ino @@ -44,7 +44,7 @@ void setup() { } else { Serial.print(F("failed, code ")); Serial.println(state); - while(true); + while (true) { delay(10); } } // set receive pipe 0 address @@ -59,7 +59,7 @@ void setup() { } else { Serial.print(F("failed, code ")); Serial.println(state); - while(true); + while (true) { delay(10); } } } diff --git a/examples/nRF24/nRF24_Receive_Interrupt/nRF24_Receive_Interrupt.ino b/examples/nRF24/nRF24_Receive_Interrupt/nRF24_Receive_Interrupt.ino index 1535bc66..36622d6d 100644 --- a/examples/nRF24/nRF24_Receive_Interrupt/nRF24_Receive_Interrupt.ino +++ b/examples/nRF24/nRF24_Receive_Interrupt/nRF24_Receive_Interrupt.ino @@ -41,7 +41,7 @@ void setup() { } else { Serial.print(F("failed, code ")); Serial.println(state); - while(true); + while (true) { delay(10); } } // set receive pipe 0 address @@ -56,7 +56,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 @@ -71,7 +71,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 diff --git a/examples/nRF24/nRF24_Transmit_Blocking/nRF24_Transmit_Blocking.ino b/examples/nRF24/nRF24_Transmit_Blocking/nRF24_Transmit_Blocking.ino index 402a3cff..c553eab2 100644 --- a/examples/nRF24/nRF24_Transmit_Blocking/nRF24_Transmit_Blocking.ino +++ b/examples/nRF24/nRF24_Transmit_Blocking/nRF24_Transmit_Blocking.ino @@ -40,7 +40,7 @@ void setup() { } else { Serial.print(F("failed, code ")); Serial.println(state); - while(true); + while (true) { delay(10); } } // set transmit address @@ -55,7 +55,7 @@ void setup() { } else { Serial.print(F("failed, code ")); Serial.println(state); - while(true); + while (true) { delay(10); } } } diff --git a/examples/nRF24/nRF24_Transmit_Interrupt/nRF24_Transmit_Interrupt.ino b/examples/nRF24/nRF24_Transmit_Interrupt/nRF24_Transmit_Interrupt.ino index 55834b8d..58c18e73 100644 --- a/examples/nRF24/nRF24_Transmit_Interrupt/nRF24_Transmit_Interrupt.ino +++ b/examples/nRF24/nRF24_Transmit_Interrupt/nRF24_Transmit_Interrupt.ino @@ -43,7 +43,7 @@ void setup() { } else { Serial.print(F("failed, code ")); Serial.println(state); - while(true); + while (true) { delay(10); } } // set transmit address @@ -58,7 +58,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