fix #505 allow forced standby mode to not assert fail

1.2-legacy
Kevin Hester 2020-10-29 16:13:44 +08:00
rodzic 04942a3570
commit 47bbde3c60
1 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -236,9 +236,10 @@ void RadioLibInterface::startTransmitTimer(bool withDelay)
void RadioLibInterface::handleTransmitInterrupt()
{
// DEBUG_MSG("handling lora TX interrupt\n");
assert(sendingPacket); // Were we sending? - FIXME, this was null coming out of light sleep due to RF95 ISR!
completeSending();
// This can be null if we forced the device to enter standby mode. In that case
// ignore the transmit interrupt
if(sendingPacket)
completeSending();
}
void RadioLibInterface::completeSending()