mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2024-12-27 08:29:42 -05:00
Added parameters to host disconnect cleanup
This commit is contained in:
parent
de1a8aa36c
commit
9f1021d30a
@ -555,7 +555,11 @@ void serialCallback(uint8_t sbyte) {
|
|||||||
kiss_indicate_implicit_length();
|
kiss_indicate_implicit_length();
|
||||||
} else if (command == CMD_LEAVE) {
|
} else if (command == CMD_LEAVE) {
|
||||||
if (sbyte == 0xFF) {
|
if (sbyte == 0xFF) {
|
||||||
cable_state = CABLE_STATE_DISCONNECTED;
|
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) {
|
} else if (command == CMD_RADIO_STATE) {
|
||||||
cable_state = CABLE_STATE_CONNECTED;
|
cable_state = CABLE_STATE_CONNECTED;
|
||||||
|
Loading…
Reference in New Issue
Block a user