Skip to content
Snippets Groups Projects
Commit 5178675c authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix types here too.

parent 0d522aab
No related branches found
No related tags found
No related merge requests found
......@@ -62,10 +62,10 @@ modem_input_thread(void *args)
void
modem_output_thread(void *args)
{
size_t wr;
size_t sent;
int i;
int wr;
int ret;
int sent;
bool monitor_dsr = true;
SetThreadName("Modem Output");
......@@ -85,7 +85,7 @@ modem_output_thread(void *args)
conn_api.wr_buf[i] &= 0x7f;
}
sent = 0;
while (com != COM_HANDLE_INVALID && sent < wr) {
while (com != COM_HANDLE_INVALID && sent < wr && !conn_api.terminate) {
ret = comWriteBuf(com, conn_api.wr_buf + sent, wr - sent);
if (ret < 0)
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment