mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_Empty: add discard_input method on UARTDriver
This commit is contained in:
parent
8f54de4184
commit
b16c1ea647
|
@ -15,6 +15,7 @@ bool Empty::UARTDriver::tx_pending() { return false; }
|
|||
uint32_t Empty::UARTDriver::available() { return 0; }
|
||||
uint32_t Empty::UARTDriver::txspace() { return 1; }
|
||||
int16_t Empty::UARTDriver::read() { return -1; }
|
||||
bool Empty::UARTDriver::discard_input() { return false; }
|
||||
|
||||
/* Empty implementations of Print virtual methods */
|
||||
size_t Empty::UARTDriver::write(uint8_t c) { return 0; }
|
||||
|
|
|
@ -18,6 +18,7 @@ public:
|
|||
uint32_t available() override;
|
||||
uint32_t txspace() override;
|
||||
int16_t read() override;
|
||||
bool discard_input() override;
|
||||
|
||||
/* Empty implementations of Print virtual methods */
|
||||
size_t write(uint8_t c) override;
|
||||
|
|
Loading…
Reference in New Issue