File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1682,6 +1682,7 @@ PacketType rcvDatagram()
16821682 CONTROL_U8 rxControl;
16831683 VIRTUAL_CIRCUIT * vc;
16841684 VC_RADIO_MESSAGE_HEADER * vcHeader;
1685+ int packetRSSI = -200 ;
16851686
16861687 radioCallHistory[RADIO_CALL_rcvDatagram] = millis ();
16871688
@@ -1704,7 +1705,7 @@ PacketType rcvDatagram()
17041705 {
17051706 rxSuccessMillis = rcvTimeMillis;
17061707 triggerEvent (TRIGGER_RX_SPI_DONE);
1707- rssi = radio.getRSSI ();
1708+ packetRSSI = radio.getRSSI ();
17081709 }
17091710 else
17101711 {
@@ -2342,6 +2343,9 @@ PacketType rcvDatagram()
23422343 datagramsReceived++;
23432344 linkDownTimer = millis ();
23442345
2346+ // If we've made it this far, packet is valid. Assign RSSI.
2347+ rssi = packetRSSI;
2348+
23452349 // Blink the RX LED
23462350 blinkRadioRxLed (true );
23472351 return datagramType;
You can’t perform that action at this time.
0 commit comments