File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,9 @@ static void process_kbd_report(hid_keyboard_report_t const *report)
160
160
putchar (ch );
161
161
if ( ch == '\r' ) putchar ('\n' ); // added new line for enter key
162
162
163
+ #ifndef __ICCARM__ // TODO IAR doesn't support stream control ?
163
164
fflush (stdout ); // flush right away, else nanolib will wait for newline
165
+ #endif
164
166
}
165
167
}
166
168
// TODO example skips key released
Original file line number Diff line number Diff line change @@ -66,7 +66,10 @@ bool msc_app_init(void)
66
66
for (size_t i = 0 ; i < CFG_TUH_DEVICE_MAX ; i ++ ) _disk_busy [i ] = false;
67
67
68
68
// disable stdout buffered for echoing typing command
69
+ #ifndef __ICCARM__ // TODO IAR doesn't support stream control ?
69
70
setbuf (stdout , NULL );
71
+ #endif
72
+
70
73
cli_init ();
71
74
72
75
return true;
You can’t perform that action at this time.
0 commit comments