Remove redundant radio status updates
This commit is contained in:
parent
36c90de9f8
commit
55d0a41aa8
@ -451,6 +451,7 @@ bool startRadio(RadioInterface* radio) {
|
|||||||
void stopRadio(RadioInterface* radio) {
|
void stopRadio(RadioInterface* radio) {
|
||||||
radio->end();
|
radio->end();
|
||||||
sort_interfaces();
|
sort_interfaces();
|
||||||
|
kiss_indicate_radiostate(radio);
|
||||||
}
|
}
|
||||||
|
|
||||||
void update_radio_lock(RadioInterface* radio) {
|
void update_radio_lock(RadioInterface* radio) {
|
||||||
@ -780,10 +781,8 @@ void serialCallback(uint8_t sbyte) {
|
|||||||
kiss_indicate_radiostate(selected_radio);
|
kiss_indicate_radiostate(selected_radio);
|
||||||
} else if (sbyte == 0x00) {
|
} else if (sbyte == 0x00) {
|
||||||
stopRadio(selected_radio);
|
stopRadio(selected_radio);
|
||||||
kiss_indicate_radiostate(selected_radio);
|
|
||||||
} else if (sbyte == 0x01) {
|
} else if (sbyte == 0x01) {
|
||||||
startRadio(selected_radio);
|
startRadio(selected_radio);
|
||||||
kiss_indicate_radiostate(selected_radio);
|
|
||||||
}
|
}
|
||||||
interface = 0;
|
interface = 0;
|
||||||
} else if (command == CMD_ST_ALOCK) {
|
} else if (command == CMD_ST_ALOCK) {
|
||||||
|
Loading…
Reference in New Issue
Block a user