fixup! Use mash filter if it makes sense

This commit is contained in:
Drahoslav 2017-11-16 13:52:24 +01:00
parent 7e21224c69
commit c0dfd7a7e3

View File

@ -311,7 +311,7 @@ func SetFreq(pin Pin, freq int) {
const maxUint12 = 4095
divi := uint32(sourceFreq / freq)
divf := uint32(((sourceFreq % freq) << 12) / sourceFreq)
divf := uint32(((sourceFreq % freq) << 12) / freq)
divi &= maxUint12
divf &= maxUint12