Skip to content

Commit

Permalink
Fix issue #2
Browse files Browse the repository at this point in the history
  • Loading branch information
wagiminator committed Dec 16, 2023
1 parent c7975f8 commit 37c6da5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified software/daplink.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion software/daplink.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void main(void) {

// Handle virtual COM
if(CDC_available() && UART_ready()) UART_write(CDC_read());
if(UART_available()) {
if(UART_available() && CDC_getDTR()) {
while(UART_available()) CDC_write(UART_read());
CDC_flush();
}
Expand Down

0 comments on commit 37c6da5

Please sign in to comment.