HAL_Linux: implement a dummy console buffered write()

This commit is contained in:
Andrew Tridgell 2013-10-02 17:38:13 +10:00
parent 9624821493
commit 1440c8cebd
2 changed files with 10 additions and 2 deletions

View File

@ -36,7 +36,13 @@ int16_t LinuxConsoleDriver::read() {
return _d->read();
}
size_t LinuxConsoleDriver::write(uint8_t c) {
return _d->write(c);
size_t LinuxConsoleDriver::write(uint8_t c)
{
return _d->write(c);
}
size_t LinuxConsoleDriver::write(const uint8_t *buffer, size_t size) {
return _d->write(buffer, size);
}

View File

@ -18,6 +18,8 @@ public:
int16_t read();
size_t write(uint8_t c);
size_t write(const uint8_t *buffer, size_t size);
private:
AP_HAL::BetterStream *_d;
};