Skip to content

Commit

Permalink
Remove redundant radio status updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobeva committed Aug 24, 2024
1 parent 36c90de commit 55d0a41
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions RNode_Firmware_CE.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 55d0a41

Please sign in to comment.