From 312074471614b5c90bbe3c7e2c8ae8555a099487 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Sun, 22 Jan 2023 18:18:44 +0100 Subject: [PATCH] Missed one :-) --- src/mesh/PhoneAPI.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mesh/PhoneAPI.cpp b/src/mesh/PhoneAPI.cpp index 2d0b10c68..8177cc2b6 100644 --- a/src/mesh/PhoneAPI.cpp +++ b/src/mesh/PhoneAPI.cpp @@ -376,10 +376,9 @@ bool PhoneAPI::available() if (hasPacket) return true; - if (xmodemPacketForPhone.control != meshtastic_XModem_Control_NUL) + if (xmodemPacketForPhone.control == meshtastic_XModem_Control_NUL) xmodemPacketForPhone = xModem.getForPhone(); - hasPacket = !!packetForPhone; - if (hasPacket) + if (xmodemPacketForPhone.control != meshtastic_XModem_Control_NUL) return true; if (!packetForPhone)