tryfix: also clear the second buffer.
Todo: do we really need 2 buffers here?
This commit is contained in:
1 parent
3aebb1ffb3
commit
014946ad0e
3 files changed
+9
-1
No files matched your search
@@ -378,8 +378,10 @@ bool PhoneAPI::available()
|
||||
|
||||
if (xmodemPacketForPhone.control == meshtastic_XModem_Control_NUL)
|
||||
xmodemPacketForPhone = xModem.getForPhone();
|
||||
if (xmodemPacketForPhone.control != meshtastic_XModem_Control_NUL)
|
||||
if (xmodemPacketForPhone.control != meshtastic_XModem_Control_NUL) {
|
||||
xModem.resetForPhone();
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!packetForPhone)
|
||||
packetForPhone = service.getForPhone();
|
||||
|
||||
Reference in new issue
Block a user