Skip to content

Commit

Permalink
bug fix on possible freeze at boot
Browse files Browse the repository at this point in the history
  • Loading branch information
digant73 committed Sep 23, 2023
1 parent 3e5f0a1 commit c138094
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion TFT/src/User/API/interfaceCmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
//
Expand Down

0 comments on commit c138094

Please sign in to comment.