[Taranis X9E] Audio now OK. I don't understand for now why this *2 is

needed though!
This commit is contained in:
bsongis
2015-03-03 20:55:49 +01:00
parent 01cd86f6f6
commit 3bd1e52e49
@@ -47,6 +47,10 @@ bool dacIdle = true;
void setSampleRate(uint32_t frequency)
{
#if defined(REV9E)
frequency *= 2;
#endif
register uint32_t timer = (PERI1_FREQUENCY * TIMER_MULT_APB1) / frequency - 1 ; // MCK/8 and 100 000 Hz
TIM6->CR1 &= ~TIM_CR1_CEN ;