fix #505 allow forced standby mode to not assert fail

This commit is contained in:
Kevin Hester 2020-10-29 16:13:44 +08:00
parent 04942a3570
commit 47bbde3c60

View File

@ -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()