1
0
mirror of https://github.com/richardghirst/PiBits.git synced 2025-02-26 19:54:16 +01:00

Fixed bad bracket position...

... causing wrong behavior when trying to change the value of CARRIERFREQ
This commit is contained in:
pilatomic 2014-02-27 00:17:43 +01:00
parent bf455ee13b
commit dc7a4df343

View File

@ -262,7 +262,7 @@ main(int argc, char **argv)
// Calculate the frequency control word
// The fractional part is stored in the lower 12 bits
freq_ctl = ((float)(PLLFREQ / CARRIERFREQ)) * ( 1 << 12 );
freq_ctl = (((float)PLLFREQ / CARRIERFREQ)) * ( 1 << 12 );
dma_reg = map_peripheral(DMA_BASE, DMA_LEN);
pwm_reg = map_peripheral(PWM_BASE, PWM_LEN);