mirror of https://github.com/ArduPilot/ardupilot
HAL_Linux: implement a dummy console buffered write()
This commit is contained in:
parent
9624821493
commit
1440c8cebd
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue