mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_PiccoloCAN: GPIO servo does not count as active
This commit is contained in:
parent
ea442dae1e
commit
515db96858
@ -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);
|
SRV_Channel::Aux_servo_function_t function = SRV_Channels::channel_function(chan);
|
||||||
|
|
||||||
// Ignore if the servo channel does not have a function assigned
|
// 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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user