From 266f99db93ab8a961da4d5f9145354ed1db09b71 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 18 Apr 2017 10:02:25 +1000 Subject: [PATCH] HAL_QURT: cope with nested cork/push --- libraries/AP_HAL_QURT/RCOutput.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libraries/AP_HAL_QURT/RCOutput.cpp b/libraries/AP_HAL_QURT/RCOutput.cpp index b1c7daa214..d7876a5559 100644 --- a/libraries/AP_HAL_QURT/RCOutput.cpp +++ b/libraries/AP_HAL_QURT/RCOutput.cpp @@ -116,8 +116,10 @@ void RCOutput::cork(void) void RCOutput::push(void) { - need_write = true; - corked = false; + if (corked) { + need_write = true; + corked = false; + } } #endif // CONFIG_HAL_BOARD_SUBTYPE