Browse Source

AP_SerialLED: enable 32 servo outs

apm_2208
Iampete1 4 years ago committed by Andrew Tridgell
parent
commit
c4df741af9
  1. 2
      libraries/AP_SerialLED/AP_SerialLED.cpp

2
libraries/AP_SerialLED/AP_SerialLED.cpp

@ -38,7 +38,7 @@ bool AP_SerialLED::set_num_profiled(uint8_t chan, uint8_t num_leds)
{ {
if (chan >= 1 && chan <= 16 && num_leds <= AP_SERIALLED_MAX_LEDS - 2) { if (chan >= 1 && chan <= 16 && num_leds <= AP_SERIALLED_MAX_LEDS - 2) {
// must have a clock // must have a clock
uint16_t Clock_mask = 0; uint32_t Clock_mask = 0;
if (!SRV_Channels::function_assigned((SRV_Channel::Aux_servo_function_t)((uint8_t)SRV_Channel::k_ProfiLED_Clock))) { if (!SRV_Channels::function_assigned((SRV_Channel::Aux_servo_function_t)((uint8_t)SRV_Channel::k_ProfiLED_Clock))) {
return false; return false;
} }

Loading…
Cancel
Save