forked from Archive/PX4-Autopilot
Some minor cleanup
This commit is contained in:
parent
3ab3fe2ee7
commit
d6f3a206e0
|
@ -253,11 +253,7 @@ ssize_t SerialImpl::write(const void *buffer, size_t buffer_size)
|
||||||
|
|
||||||
void SerialImpl::flush()
|
void SerialImpl::flush()
|
||||||
{
|
{
|
||||||
if (_open) {
|
// TODO: Flush not implemented yet on Qurt
|
||||||
uint8_t buffer[4];
|
|
||||||
// A read clears out all current data
|
|
||||||
read(buffer, 4);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *SerialImpl::getPort() const
|
const char *SerialImpl::getPort() const
|
||||||
|
|
|
@ -43,7 +43,6 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <px4_log.h>
|
|
||||||
#include "QueueBuffer.hpp"
|
#include "QueueBuffer.hpp"
|
||||||
#include "CrsfParser.hpp"
|
#include "CrsfParser.hpp"
|
||||||
#include "Crc8.hpp"
|
#include "Crc8.hpp"
|
||||||
|
|
Loading…
Reference in New Issue