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)
160160 putchar (ch );
161161 if ( ch == '\r' ) putchar ('\n' ); // added new line for enter key
162162
163+ #ifndef __ICCARM__ // TODO IAR doesn't support stream control ?
163164 fflush (stdout ); // flush right away, else nanolib will wait for newline
165+ #endif
164166 }
165167 }
166168 // TODO example skips key released
Original file line number Diff line number Diff line change @@ -66,7 +66,10 @@ bool msc_app_init(void)
6666 for (size_t i = 0 ; i < CFG_TUH_DEVICE_MAX ; i ++ ) _disk_busy [i ] = false;
6767
6868 // disable stdout buffered for echoing typing command
69+ #ifndef __ICCARM__ // TODO IAR doesn't support stream control ?
6970 setbuf (stdout , NULL );
71+ #endif
72+
7073 cli_init ();
7174
7275 return true;
You can’t perform that action at this time.
0 commit comments