HAL_Empty: implement uart_info()

This commit is contained in:
Andrew Tridgell 2021-06-05 13:50:28 +10:00
parent d8a6d9c5c4
commit 23cf128541
2 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,6 @@
#include "UARTDriver.h"
#include <AP_Common/ExpandingString.h>
Empty::UARTDriver::UARTDriver() {}
@ -28,3 +29,8 @@ size_t Empty::UARTDriver::write(const uint8_t *buffer, size_t size)
}
return n;
}
void Empty::UARTDriver::uart_info(ExpandingString &str)
{
str.printf("EMPTY\n");
}

View File

@ -23,4 +23,7 @@ public:
/* Empty implementations of Print virtual methods */
size_t write(uint8_t c) override;
size_t write(const uint8_t *buffer, size_t size) override;
// request information on uart I/O for one uart
void uart_info(ExpandingString &str) override;
};