Skip to content

Commit

Permalink
hosted/serial_win: Fixed a bug in platform_buffer_write() for Windows…
Browse files Browse the repository at this point in the history
… which would make wrongly it skip chunks of the buffer to write, corrupting the message to send
  • Loading branch information
dragonmux authored and esden committed Nov 13, 2023
1 parent e8c9ea0 commit f33af05
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/platforms/hosted/serial_win.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ bool platform_buffer_write(const void *const data, const size_t length)
DEBUG_ERROR("Serial write failed %lu, written %zu\n", GetLastError(), offset);
return false;
}
offset += written;
}
return true;
}
Expand Down

0 comments on commit f33af05

Please sign in to comment.