host msc example work well with rp2040 pio-usb

This commit is contained in:
hathach
2022-11-21 15:49:38 +07:00
parent ba9f88f18c
commit 460bef9dbb
11 changed files with 43 additions and 37 deletions

View File

@@ -69,7 +69,7 @@ int main(void)
// echo
uint8_t ch;
if ( board_uart_read(&ch, 1) )
if ( board_uart_read(&ch, 1) > 0 )
{
board_uart_write(&ch, 1);
}