mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-26 01:33:56 -04:00
AP_HAL_SITL: remove SBUS debug code
This commit is contained in:
parent
c30642a348
commit
760c6185e5
@ -154,11 +154,6 @@ size_t UARTDriver::write(const uint8_t *buffer, size_t size)
|
||||
return 0;
|
||||
}
|
||||
if (_unbuffered_writes) {
|
||||
struct timeval tp;
|
||||
gettimeofday(&tp, nullptr);
|
||||
uint64_t time = 1.0e6 * (tp.tv_sec + (tp.tv_usec * 1.0e-6));
|
||||
DataFlash_Class::instance()->Log_Write("SBUS", "TimeUS,ToD", "QQ",
|
||||
AP_HAL::micros64(), time);
|
||||
// write buffer straight to the file descriptor
|
||||
ssize_t nwritten = ::write(_fd, buffer, size);
|
||||
if (nwritten == -1 && errno != EAGAIN && _uart_path) {
|
||||
|
Loading…
Reference in New Issue
Block a user