From 6d3ff416cf86417b51ab3c68aa1d763bd11a7d99 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 28 Jul 2018 13:44:49 +1000 Subject: [PATCH] AP_IOMCU: fixed setting of rate masks this affects layouts which set a subset of channels on a timer --- libraries/AP_IOMCU/AP_IOMCU.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libraries/AP_IOMCU/AP_IOMCU.cpp b/libraries/AP_IOMCU/AP_IOMCU.cpp index 42fb3a50bc..faebe04cb3 100644 --- a/libraries/AP_IOMCU/AP_IOMCU.cpp +++ b/libraries/AP_IOMCU/AP_IOMCU.cpp @@ -563,8 +563,15 @@ void AP_IOMCU::push(void) // set output frequency void AP_IOMCU::set_freq(uint16_t chmask, uint16_t freq) { + const uint8_t masks[] = { 0x03,0x0C,0xF0 }; + // ensure mask is legal for the timer layout + for (uint8_t i=0; i