Merge pull request #6797 from OpenNuvoton/nuvoton_fix_noserial

Fix compile error with DirectSerial in serial-less build
pull/6522/merge
Cruz Monrreal 2018-05-07 10:27:27 -05:00 committed by GitHub
commit 39fd120064
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: