Correct LED activation on radio start up

This commit is contained in:
jacob.eva 2024-07-16 15:52:12 +01:00
parent 869c7a026b
commit 6d7e763d7f
No known key found for this signature in database
GPG Key ID: 0B92E083BBCCAA1E

View File

@ -350,9 +350,9 @@ void led_indicate_warning(int cycles) {
bool forever = (cycles == 0) ? true : false; bool forever = (cycles == 0) ? true : false;
cycles = forever ? 1 : cycles; cycles = forever ? 1 : cycles;
while(cycles > 0) { while(cycles > 0) {
led_rx_off(); led_tx_off();
delay(100); delay(100);
led_rx_on(); led_tx_on();
delay(100); delay(100);
if (!forever) cycles--; if (!forever) cycles--;
} }