forked from Archive/PX4-Autopilot
fmu: fix typo introduced in 78b0d1a
which adds PWM1 mode
This commit is contained in:
parent
6fc30c76a6
commit
b75ff417ea
|
@ -2668,11 +2668,6 @@ fmu_new_mode(PortMode new_mode)
|
|||
|
||||
case PORT_FULL_PWM:
|
||||
|
||||
case PORT_PWM1:
|
||||
/* select 2-pin PWM mode */
|
||||
servo_mode = PX4FMU::MODE_1PWM;
|
||||
break;
|
||||
|
||||
#if defined(BOARD_HAS_PWM) && BOARD_HAS_PWM == 4
|
||||
/* select 4-pin PWM mode */
|
||||
servo_mode = PX4FMU::MODE_4PWM;
|
||||
|
@ -2685,6 +2680,11 @@ fmu_new_mode(PortMode new_mode)
|
|||
#endif
|
||||
break;
|
||||
|
||||
case PORT_PWM1:
|
||||
/* select 2-pin PWM mode */
|
||||
servo_mode = PX4FMU::MODE_1PWM;
|
||||
break;
|
||||
|
||||
#if defined(BOARD_HAS_PWM) && BOARD_HAS_PWM >= 6
|
||||
|
||||
case PORT_PWM4:
|
||||
|
|
Loading…
Reference in New Issue