Skip to content

Commit 39fd120

Browse files
author
Cruz Monrreal
authored
Merge pull request #6797 from OpenNuvoton/nuvoton_fix_noserial
Fix compile error with DirectSerial in serial-less build
2 parents 7a5ba60 + bfe9ee7 commit 39fd120

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/mbed_retarget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ void remove_filehandle(FileHandle *file) {
126126
#if DEVICE_SERIAL
127127
extern int stdio_uart_inited;
128128
extern serial_t stdio_uart;
129-
#endif
130129

131130
/* Private FileHandle to implement backwards-compatible functionality of
132131
* direct HAL serial access for default stdin/stdout/stderr.
@@ -193,6 +192,7 @@ short DirectSerial::poll(short events) const {
193192
}
194193
return revents;
195194
}
195+
#endif
196196

197197
class Sink : public FileHandle {
198198
public:

0 commit comments

Comments
 (0)