fmu: fix typo introduced in 78b0d1a which adds PWM1 mode

This commit is contained in:
Siddharth Bharat Purohit 2016-10-21 21:55:14 +05:30 committed by Julian Oes
parent 6fc30c76a6
commit b75ff417ea
1 changed files with 5 additions and 5 deletions

View File

@ -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: