From cf367eae2c18d27a5ca02af9639666f23887bac3 Mon Sep 17 00:00:00 2001 From: mikeller Date: Sat, 11 Aug 2018 14:35:18 +1200 Subject: [PATCH] Fixed camera pin flag. --- src/main/drivers/timer.h | 2 +- src/main/target/FF_FORTINIF4/target.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/drivers/timer.h b/src/main/drivers/timer.h index 8a3544886..bc80fcea9 100644 --- a/src/main/drivers/timer.h +++ b/src/main/drivers/timer.h @@ -72,7 +72,7 @@ typedef enum { TIM_USE_LED = 0x10, TIM_USE_TRANSPONDER = 0x20, TIM_USE_BEEPER = 0x40, - TIM_USE_CAMERA_CONTROL = 0x40, + TIM_USE_CAMERA_CONTROL = 0x80, } timerUsageFlag_e; // use different types from capture and overflow - multiple overflow handlers are implemented as linked list diff --git a/src/main/target/FF_FORTINIF4/target.c b/src/main/target/FF_FORTINIF4/target.c index 319663973..97ff2d25b 100644 --- a/src/main/target/FF_FORTINIF4/target.c +++ b/src/main/target/FF_FORTINIF4/target.c @@ -39,8 +39,8 @@ const timerHardware_t timerHardware[USABLE_TIMER_CHANNEL_COUNT] = { #endif DEF_TIM(TIM4, CH4, PB9, TIM_USE_PPM, 0, 0 ), // PPM IN #if defined(FF_FORTINIF4_REV03) - DEF_TIM(TIM4, CH2, PB7, TIM_USE_CAM, 0, 0 ), // FC CAM - DMA1_ST3 - DEF_TIM(TIM4, CH1, PB6, TIM_USE_LED, 0, 0 ), // LED - DMA1_ST0 + DEF_TIM(TIM4, CH2, PB7, TIM_USE_CAMERA_CONTROL, 0, 0 ), // FC CAM - DMA1_ST3 + DEF_TIM(TIM4, CH1, PB6, TIM_USE_LED, 0, 0 ), // LED - DMA1_ST0 #else DEF_TIM(TIM4, CH2, PB7, TIM_USE_LED | TIM_USE_CAMERA_CONTROL, 0, 0 ), // LED - DMA1_ST3 #endif