From bd8e6a73d45761261b111c63864c4e206d445dad Mon Sep 17 00:00:00 2001 From: mikecarper Date: Mon, 26 Oct 2026 19:47:22 -0700 Subject: [PATCH] Keep late OTA replies inside the shared USB source --- src/helpers/ota/MotaSourceSerial.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/helpers/ota/MotaSourceSerial.h b/src/helpers/ota/MotaSourceSerial.h index 55190acee..e673bf2cf 100644 --- a/src/helpers/ota/MotaSourceSerial.h +++ b/src/helpers/ota/MotaSourceSerial.h @@ -40,6 +40,11 @@ public: int availableControlBytes(); int readControlByte(); bool hasPendingResponse() const { return _response_pending; } + // KISS may claim the physical port only between complete response and CLI + // records, after the console has consumed every retained text byte. + bool canReleaseControlInput() const { + return !_response_pending && !_control_in_line && _control_len == 0; + } void resetSessionState(); protected: