tryfix: also clear the second buffer.

Todo: do we really need 2 buffers here?
This commit is contained in:
Thomas Göttgens
2023-01-23 12:29:10 +01:00
parent 3aebb1ffb3
commit 014946ad0e
3 changed files with 9 additions and 1 deletions

View File

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