From 760c6185e56990141547fe5970f70577ffc66d72 Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Thu, 30 Nov 2017 12:03:17 -0800 Subject: [PATCH] AP_HAL_SITL: remove SBUS debug code --- libraries/AP_HAL_SITL/UARTDriver.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libraries/AP_HAL_SITL/UARTDriver.cpp b/libraries/AP_HAL_SITL/UARTDriver.cpp index 9ee2d43b2c..b7613a13aa 100644 --- a/libraries/AP_HAL_SITL/UARTDriver.cpp +++ b/libraries/AP_HAL_SITL/UARTDriver.cpp @@ -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) {