mirror of https://github.com/ARMmbed/mbed-os.git
Fix compile error with DirectSerial in serial-less build
parent
ae6c7c60f9
commit
57c11ad46e
|
@ -126,7 +126,6 @@ void remove_filehandle(FileHandle *file) {
|
||||||
#if DEVICE_SERIAL
|
#if DEVICE_SERIAL
|
||||||
extern int stdio_uart_inited;
|
extern int stdio_uart_inited;
|
||||||
extern serial_t stdio_uart;
|
extern serial_t stdio_uart;
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Private FileHandle to implement backwards-compatible functionality of
|
/* Private FileHandle to implement backwards-compatible functionality of
|
||||||
* direct HAL serial access for default stdin/stdout/stderr.
|
* direct HAL serial access for default stdin/stdout/stderr.
|
||||||
|
@ -193,6 +192,7 @@ short DirectSerial::poll(short events) const {
|
||||||
}
|
}
|
||||||
return revents;
|
return revents;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
class Sink : public FileHandle {
|
class Sink : public FileHandle {
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in New Issue