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

@@ -74,6 +74,11 @@ meshtastic_XModem XModemAdapter::getForPhone()
return xmodemStore;
}
void XModemAdapter::resetForPhone()
{
xmodemStore = meshtastic_XModem_init_zero;
}
void XModemAdapter::handlePacket(meshtastic_XModem xmodemPacket)
{
switch (xmodemPacket.control) {