macros for divisors and fix lf optimal freq display

This commit is contained in:
Philippe Teuwen 2019-10-03 18:25:21 +02:00
commit f29ad0fba2
4 changed files with 15 additions and 9 deletions

View file

@ -24,7 +24,7 @@ Default LF config is set to:
divisor = 95 (125kHz)
trigger_threshold = 0
*/
sample_config config = { 1, 8, 1, 96, 0, 0 } ;
sample_config config = { 1, 8, 1, LF_DIVISOR_125, 0, 0 } ;
void printConfig() {
uint32_t d = config.divisor;