Some minor cleanup

This commit is contained in:
Eric Katzfey 2024-03-21 20:44:37 -07:00
parent 3ab3fe2ee7
commit d6f3a206e0
2 changed files with 1 additions and 6 deletions

View File

@ -253,11 +253,7 @@ ssize_t SerialImpl::write(const void *buffer, size_t buffer_size)
void SerialImpl::flush()
{
if (_open) {
uint8_t buffer[4];
// A read clears out all current data
read(buffer, 4);
}
// TODO: Flush not implemented yet on Qurt
}
const char *SerialImpl::getPort() const

View File

@ -43,7 +43,6 @@
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <px4_log.h>
#include "QueueBuffer.hpp"
#include "CrsfParser.hpp"
#include "Crc8.hpp"