From b75ff417ea05e2cce3b584582acb758ddfaf8653 Mon Sep 17 00:00:00 2001 From: Siddharth Bharat Purohit Date: Fri, 21 Oct 2016 21:55:14 +0530 Subject: [PATCH] fmu: fix typo introduced in 78b0d1a which adds PWM1 mode --- src/drivers/px4fmu/fmu.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/drivers/px4fmu/fmu.cpp b/src/drivers/px4fmu/fmu.cpp index 02dbc6c1c4..87c6df66a4 100644 --- a/src/drivers/px4fmu/fmu.cpp +++ b/src/drivers/px4fmu/fmu.cpp @@ -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: