From 515db9685873b80704bb909ed9dd9c19e54942dc Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Fri, 4 Mar 2022 22:52:39 +0000 Subject: [PATCH] AP_PiccoloCAN: GPIO servo does not count as active --- libraries/AP_PiccoloCAN/AP_PiccoloCAN.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_PiccoloCAN/AP_PiccoloCAN.cpp b/libraries/AP_PiccoloCAN/AP_PiccoloCAN.cpp index d7124d54df..1881bc4619 100644 --- a/libraries/AP_PiccoloCAN/AP_PiccoloCAN.cpp +++ b/libraries/AP_PiccoloCAN/AP_PiccoloCAN.cpp @@ -749,7 +749,7 @@ bool AP_PiccoloCAN::is_servo_channel_active(uint8_t chan) SRV_Channel::Aux_servo_function_t function = SRV_Channels::channel_function(chan); // Ignore if the servo channel does not have a function assigned - if (function == SRV_Channel::k_none) { + if (function <= SRV_Channel::k_none) { return false; }