From 98b7dac87045d175766262b6c449354b315ad8df Mon Sep 17 00:00:00 2001 From: Jacob Walser Date: Fri, 31 Mar 2017 21:31:56 -0400 Subject: [PATCH] AP_ServoRelayEvents: Remove constraint on 'channel' value This was preventing proper function of Relay #0, and the intention of this check was redundant --- libraries/AP_ServoRelayEvents/AP_ServoRelayEvents.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libraries/AP_ServoRelayEvents/AP_ServoRelayEvents.cpp b/libraries/AP_ServoRelayEvents/AP_ServoRelayEvents.cpp index 68d73ff8d6..56327e20ca 100644 --- a/libraries/AP_ServoRelayEvents/AP_ServoRelayEvents.cpp +++ b/libraries/AP_ServoRelayEvents/AP_ServoRelayEvents.cpp @@ -106,10 +106,6 @@ void AP_ServoRelayEvents::update_events(void) return; } - if (channel > NUM_SERVO_CHANNELS || channel == 0) { - return; - } - start_time_ms = AP_HAL::millis(); switch (type) {