From 55d0a41aa8192f5f6a7b0bca487f7337df5c2220 Mon Sep 17 00:00:00 2001 From: "jacob.eva" Date: Sat, 24 Aug 2024 15:12:50 +0100 Subject: [PATCH] Remove redundant radio status updates --- RNode_Firmware_CE.ino | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/RNode_Firmware_CE.ino b/RNode_Firmware_CE.ino index 294cd5f..c45eace 100644 --- a/RNode_Firmware_CE.ino +++ b/RNode_Firmware_CE.ino @@ -451,6 +451,7 @@ bool startRadio(RadioInterface* radio) { void stopRadio(RadioInterface* radio) { radio->end(); sort_interfaces(); + kiss_indicate_radiostate(radio); } void update_radio_lock(RadioInterface* radio) { @@ -780,10 +781,8 @@ void serialCallback(uint8_t sbyte) { kiss_indicate_radiostate(selected_radio); } else if (sbyte == 0x00) { stopRadio(selected_radio); - kiss_indicate_radiostate(selected_radio); } else if (sbyte == 0x01) { startRadio(selected_radio); - kiss_indicate_radiostate(selected_radio); } interface = 0; } else if (command == CMD_ST_ALOCK) {