Skip to content

Commit

Permalink
Improve xmodem send timeout verbosity.
Browse files Browse the repository at this point in the history
  • Loading branch information
relic-se committed Mar 27, 2024
1 parent dc07c55 commit 3e9165c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xmodem.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ bool xmodem_send(char* inputBuffer, size_t bufferSize)
}
}
while (tries++ < 30000);
if (tries >= 30000 && xmodem_config.logLevel >= 1) xmodem_log("Timeout");
if (tries >= 30000 && xmodem_config.logLevel >= 1) xmodem_log("Transfer Start Timeout");

while (!!result && bufpos < bufferSize)
{
Expand Down Expand Up @@ -419,7 +419,7 @@ bool xmodem_send(char* inputBuffer, size_t bufferSize)
if (tries >= 2000)
{
result = false;
if (xmodem_config.logLevel >= 1) xmodem_log("Timeout");
if (xmodem_config.logLevel >= 1) xmodem_log("EOT Timeout");
}
}

Expand Down

0 comments on commit 3e9165c

Please sign in to comment.