From 6e64a546df89626497fc72c88ca4800866e2838c Mon Sep 17 00:00:00 2001 From: Mathieu Rondonneau Date: Thu, 2 Jun 2011 20:21:26 -0700 Subject: [PATCH] Remove un-used code --- flight/PiOS/STM32F10x/pios_servo.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/flight/PiOS/STM32F10x/pios_servo.c b/flight/PiOS/STM32F10x/pios_servo.c index 04c731a5d..28aa6dc13 100644 --- a/flight/PiOS/STM32F10x/pios_servo.c +++ b/flight/PiOS/STM32F10x/pios_servo.c @@ -34,7 +34,6 @@ /* Private Function Prototypes */ -uint16_t servo_positions[8]; /** * Initialise Servos */ @@ -174,19 +173,15 @@ void PIOS_Servo_Set(uint8_t Servo, uint16_t Position) switch(pios_servo_cfg.channels[Servo].channel) { case TIM_Channel_1: - servo_positions[Servo] = Position; TIM_SetCompare1(pios_servo_cfg.channels[Servo].timer, Position); break; case TIM_Channel_2: - servo_positions[Servo] = Position; TIM_SetCompare2(pios_servo_cfg.channels[Servo].timer, Position); break; case TIM_Channel_3: - servo_positions[Servo] = Position; TIM_SetCompare3(pios_servo_cfg.channels[Servo].timer, Position); break; case TIM_Channel_4: - servo_positions[Servo] = Position; TIM_SetCompare4(pios_servo_cfg.channels[Servo].timer, Position); break; }