Skip to content

Commit 145490c

Browse files
committed
MP: Don't change state when not necessary
1 parent 39ab0bf commit 145490c

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Firmware/LoRaSerial/States.ino

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,10 +1411,6 @@ void updateRadioState()
14111411
changeState(RADIO_MP_WAIT_TX_DONE);
14121412
}
14131413
}
1414-
else
1415-
{
1416-
changeState(RADIO_MP_STANDBY);
1417-
}
14181414
break;
14191415

14201416
case DATAGRAM_HEARTBEAT:
@@ -1432,7 +1428,6 @@ void updateRadioState()
14321428
lastPacketReceived = millis(); //Update timestamp for Link LED
14331429

14341430
blinkHeartbeatLed(true);
1435-
changeState(RADIO_MP_STANDBY);
14361431
}
14371432
break;
14381433

@@ -1446,8 +1441,6 @@ void updateRadioState()
14461441
frequencyCorrection += radio.getFrequencyError() / 1000000.0;
14471442

14481443
lastPacketReceived = millis(); //Update timestamp for Link LED
1449-
1450-
changeState(RADIO_MP_STANDBY);
14511444
break;
14521445
}
14531446
}

0 commit comments

Comments
 (0)