From 881fd4f37c02a856683c83e6456fd71184be3b86 Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Tue, 26 Jan 2021 19:19:44 +0000 Subject: [PATCH] AP_HAL_ChibiOS: use buffered writes for CRSF telemetry --- libraries/AP_RCProtocol/AP_RCProtocol.cpp | 1 - libraries/AP_RCProtocol/AP_RCProtocol_CRSF.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/libraries/AP_RCProtocol/AP_RCProtocol.cpp b/libraries/AP_RCProtocol/AP_RCProtocol.cpp index e870f12e44..a722b0f59d 100644 --- a/libraries/AP_RCProtocol/AP_RCProtocol.cpp +++ b/libraries/AP_RCProtocol/AP_RCProtocol.cpp @@ -266,7 +266,6 @@ void AP_RCProtocol::check_added_uart(void) added.uart->configure_parity(0); added.uart->set_stop_bits(1); added.uart->set_flow_control(AP_HAL::UARTDriver::FLOW_CONTROL_DISABLE); - added.uart->set_unbuffered_writes(true); added.uart->set_blocking_writes(false); added.uart->set_options(added.uart->get_options() & ~AP_HAL::UARTDriver::OPTION_RXINV); break; diff --git a/libraries/AP_RCProtocol/AP_RCProtocol_CRSF.cpp b/libraries/AP_RCProtocol/AP_RCProtocol_CRSF.cpp index 223a3e6e88..71e8847e75 100644 --- a/libraries/AP_RCProtocol/AP_RCProtocol_CRSF.cpp +++ b/libraries/AP_RCProtocol/AP_RCProtocol_CRSF.cpp @@ -370,7 +370,6 @@ void AP_RCProtocol_CRSF::start_uart() _uart->configure_parity(0); _uart->set_stop_bits(1); _uart->set_flow_control(AP_HAL::UARTDriver::FLOW_CONTROL_DISABLE); - _uart->set_unbuffered_writes(true); _uart->set_blocking_writes(false); _uart->set_options(_uart->get_options() & ~AP_HAL::UARTDriver::OPTION_RXINV); _uart->begin(CRSF_BAUDRATE, 128, 128);