This commit is contained in:
2018-02-07 21:18:06 +01:00
parent ddfbbeeb95
commit 3584830dc5
4 changed files with 70 additions and 18 deletions
+4 -1
View File
@@ -371,7 +371,10 @@ bool solve_timer(uint32_t base_freq, uint32_t required_freq, bool is16bit,
*presc = (uint16_t) wPresc;
if (wPresc * wCount == 0) return false;
*real_freq = (base_freq / (wPresc * wCount));
if (real_freq != NULL) {
*real_freq = (base_freq / (wPresc * wCount));
}
return true;
}