Fix compile error with DirectSerial in serial-less build

pull/6950/head
ccli8 2018-05-03 10:52:09 +08:00 committed by adbridge
parent ae6c7c60f9
commit 57c11ad46e
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,6 @@ void remove_filehandle(FileHandle *file) {
#if DEVICE_SERIAL
extern int stdio_uart_inited;
extern serial_t stdio_uart;
#endif
/* Private FileHandle to implement backwards-compatible functionality of
* direct HAL serial access for default stdin/stdout/stderr.
@ -193,6 +192,7 @@ short DirectSerial::poll(short events) const {
}
return revents;
}
#endif
class Sink : public FileHandle {
public: