From e942ac5ffc74f499897e3c496aa5994c3d332d77 Mon Sep 17 00:00:00 2001 From: jgromes Date: Sat, 29 Jun 2024 18:33:03 +0200 Subject: [PATCH] [SSTV] Added delay to halting while loops --- examples/SSTV/SSTV_Transmit/SSTV_Transmit.ino | 8 ++++---- examples/SSTV/SSTV_Transmit_AFSK/SSTV_Transmit_AFSK.ino | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/SSTV/SSTV_Transmit/SSTV_Transmit.ino b/examples/SSTV/SSTV_Transmit/SSTV_Transmit.ino index e532e2d4..46ec78a9 100644 --- a/examples/SSTV/SSTV_Transmit/SSTV_Transmit.ino +++ b/examples/SSTV/SSTV_Transmit/SSTV_Transmit.ino @@ -96,7 +96,7 @@ void setup() { } else { Serial.print(F("failed, code ")); Serial.println(state); - while (true); + while (true) { delay(10); } } // when using one of the non-LoRa modules for SSTV @@ -113,7 +113,7 @@ void setup() { } else { Serial.print(F("failed, code ")); Serial.println(state); - while(true); + while (true) { delay(10); } } // set correction factor @@ -132,7 +132,7 @@ void setup() { } else { Serial.print(F("failed, code ")); Serial.println(state); - while(true); + while (true) { delay(10); } } // to help tune the receiver, SSTVClient can send @@ -141,7 +141,7 @@ void setup() { // (SSTV header "leader tone") /* sstv.idle(); - while(true); + while (true) { delay(10); } */ } diff --git a/examples/SSTV/SSTV_Transmit_AFSK/SSTV_Transmit_AFSK.ino b/examples/SSTV/SSTV_Transmit_AFSK/SSTV_Transmit_AFSK.ino index 924522b1..5ec48a5a 100644 --- a/examples/SSTV/SSTV_Transmit_AFSK/SSTV_Transmit_AFSK.ino +++ b/examples/SSTV/SSTV_Transmit_AFSK/SSTV_Transmit_AFSK.ino @@ -103,7 +103,7 @@ void setup() { } else { Serial.print(F("failed, code ")); Serial.println(state); - while (true); + while (true) { delay(10); } } // when using one of the non-LoRa modules for SSTV @@ -119,7 +119,7 @@ void setup() { } else { Serial.print(F("failed, code ")); Serial.println(state); - while(true); + while (true) { delay(10); } } // set correction factor @@ -138,14 +138,14 @@ void setup() { } else { Serial.print(F("failed, code ")); Serial.println(state); - while(true); + while (true) { delay(10); } } // to help tune the receiver, SSTVClient can send // continuous 1900 Hz beep /* sstv.idle(); - while(true); + while (true) { delay(10); } */ }