Skip to content

Commit 497bf60

Browse files
committed
Bug Fix: Receive remote command responses when in command mode
1 parent 9781cf0 commit 497bf60

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Firmware/LoRaSerial/Radio.ino

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2393,7 +2393,10 @@ PacketType validateDatagram(VIRTUAL_CIRCUIT * vc, PacketType datagramType, uint8
23932393
}
23942394

23952395
//Verify that there is sufficient space in the serialTransmitBuffer
2396-
if (inCommandMode || (freeBytes < rxDataBytes))
2396+
//Apply back pressure if the remote system is trying to send data while
2397+
//the local system is in command mode. Remote command responses should
2398+
//be received.
2399+
if ((inCommandMode && (datagramType == DATAGRAM_DATA)) || (freeBytes < rxDataBytes))
23972400
{
23982401
if (settings.debugReceive || settings.debugDatagrams)
23992402
{

0 commit comments

Comments
 (0)