From dd3eaf4ec96dd36d957641119c7b731b0bfc771b Mon Sep 17 00:00:00 2001 From: bsongis Date: Thu, 9 Jul 2015 22:35:18 +0200 Subject: [PATCH] [Taranis] Hardcoded timer removed --- radio/src/opentx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/opentx.h b/radio/src/opentx.h index c428680f7..49bb990ae 100644 --- a/radio/src/opentx.h +++ b/radio/src/opentx.h @@ -924,7 +924,7 @@ extern uint16_t lastMixerDuration; #endif #if defined(CPUSTM32) - static inline uint16_t getTmr2MHz() { return TIM7->CNT; } + static inline uint16_t getTmr2MHz() { return TIMER_2MHz_TIMER->CNT; } #elif defined(CPUARM) static inline uint16_t getTmr2MHz() { return TC1->TC_CHANNEL[0].TC_CV; } #else