AP_PiccoloCAN: GPIO servo does not count as active

This commit is contained in:
Iampete1 2022-03-04 22:52:39 +00:00 committed by Andrew Tridgell
parent ea442dae1e
commit 515db96858

View File

@ -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;
}