From c1380946f2bbb493ebbfdc9af6216b4bea88995b Mon Sep 17 00:00:00 2001 From: digant73 Date: Sat, 23 Sep 2023 12:02:02 +0200 Subject: [PATCH] bug fix on possible freeze at boot --- TFT/src/User/API/interfaceCmd.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/TFT/src/User/API/interfaceCmd.c b/TFT/src/User/API/interfaceCmd.c index d71deae30a..8173857671 100644 --- a/TFT/src/User/API/interfaceCmd.c +++ b/TFT/src/User/API/interfaceCmd.c @@ -1486,7 +1486,11 @@ void sendQueueCmd(void) } // end parsing cmd send_cmd: - if (sendCmd(false, avoid_terminal) == true) // if command was sent + // if command was sent: + // - if TFT is connected, update tx slots and tx count + // - if TFT is not connected, consider the command as an out of band message + // + if (sendCmd(false, avoid_terminal) == true && infoHost.connected == true) { // decrease the number of available tx slots and increase the pending commands tx count //