Added parameters to host disconnect cleanup

This commit is contained in:
Mark Qvist 2022-10-29 17:34:08 +02:00
parent de1a8aa36c
commit 9f1021d30a

View File

@ -556,6 +556,10 @@ void serialCallback(uint8_t sbyte) {
} else if (command == CMD_LEAVE) {
if (sbyte == 0xFF) {
cable_state = CABLE_STATE_DISCONNECTED;
current_rssi = -292;
last_rssi = -292;
last_rssi_raw = 0x00;
last_snr_raw = 0x80;
}
} else if (command == CMD_RADIO_STATE) {
cable_state = CABLE_STATE_CONNECTED;