diff options
| author | hathach <[email protected]> | 2022-11-21 16:28:54 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-11-21 16:28:54 +0700 |
| commit | a394273ed28bdbd9ed5cf4ba94a99204bdd841e9 (patch) | |
| tree | f60aeb1457d1002ad8ae48bcd6f17fea77d0896b /examples | |
| parent | 460bef9dbb40d1c6990c1bfd2f8da48978550932 (diff) | |
add board_getchar() for non-blocking getchar()
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/host/msc_file_explorer/src/msc_app.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/host/msc_file_explorer/src/msc_app.c b/examples/host/msc_file_explorer/src/msc_app.c index b7c9212ee..aa193f3ce 100644 --- a/examples/host/msc_file_explorer/src/msc_app.c +++ b/examples/host/msc_file_explorer/src/msc_app.c @@ -76,13 +76,13 @@ void msc_app_task(void) { if (!_cli) return; - int ch = board_uart_getchar(); + int ch = board_getchar(); if ( ch > 0 ) { while( ch > 0 ) { embeddedCliReceiveChar(_cli, (char) ch); - ch = board_uart_getchar(); + ch = board_getchar(); } embeddedCliProcess(_cli); } |
