Skip to content

Commit 77ac50a

Browse files
committed
Squelch RSSI until link is up.
1 parent 072d96a commit 77ac50a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Firmware/LoRaSerial/States.ino

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ void updateRadioState()
262262
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
263263

264264
case RADIO_P2P_LINK_DOWN:
265+
rssi = -200; //Force RSSI LEDs off until link is up
266+
265267
//If we are on the wrong channel, go home
266268
if (channelNumber != 0)
267269
{
@@ -356,6 +358,8 @@ void updateRadioState()
356358
break;
357359

358360
case RADIO_P2P_WAIT_SYNC_CLOCKS:
361+
rssi = -200; //Force RSSI LEDs off until link is up
362+
359363
if (transactionComplete)
360364
{
361365
//Decode the received packet
@@ -479,6 +483,8 @@ void updateRadioState()
479483
break;
480484

481485
case RADIO_P2P_WAIT_ZERO_ACKS:
486+
rssi = -200; //Force RSSI LEDs off until link is up
487+
482488
if (transactionComplete == true)
483489
{
484490
//Decode the received packet
@@ -1023,6 +1029,8 @@ void updateRadioState()
10231029
//Start searching for other radios
10241030
//====================
10251031
case RADIO_DISCOVER_BEGIN:
1032+
rssi = -200; //Force RSSI LEDs off until link is up
1033+
10261034
if (settings.server)
10271035
{
10281036
changeState(RADIO_MP_STANDBY);
@@ -1060,6 +1068,8 @@ void updateRadioState()
10601068
//Walk through channel table backwards, transmitting a FIND_PARTNER and looking for a SYNC_CLOCKS
10611069
//====================
10621070
case RADIO_DISCOVER_SCANNING:
1071+
rssi = -200; //Force RSSI LEDs off until link is up
1072+
10631073
if (settings.server)
10641074
{
10651075
changeState(RADIO_MP_STANDBY);
@@ -1206,6 +1216,7 @@ void updateRadioState()
12061216
//Wait for the Server to transmit a HB on Channel 0
12071217
//====================
12081218
case RADIO_DISCOVER_STANDBY:
1219+
rssi = -200; //Force RSSI LEDs off until link is up
12091220

12101221
//Process the receive packet
12111222
if (transactionComplete == true)

0 commit comments

Comments
 (0)