Skip to content

Commit f2f005c

Browse files
committed
fix build iar with lpc43
1 parent 088180e commit f2f005c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

examples/host/cdc_msc_hid/src/hid_app.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

examples/host/msc_file_explorer/src/msc_app.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)