From 657901384a7198584098e727fcd671a6f8063293 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sun, 29 Jun 2025 11:02:02 +0200 Subject: [PATCH] fix some stuff --- src/chimer95.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chimer95.c b/src/chimer95.c index 99bdd32..24d947c 100644 --- a/src/chimer95.c +++ b/src/chimer95.c @@ -225,7 +225,7 @@ static int config_handler(void* user, const char* section, const char* name, con #define MATCH(s, n) strcmp(section, s) == 0 && strcmp(name, n) == 0 - if (MATCH("chimer95", "clipper_threshold")) { + if (MATCH("chimer95", "freq")) { pconfig->freq = strtof(value, NULL); } else if(MATCH("chimer95", "volume")) { pconfig->master_volume = strtof(value, NULL); @@ -233,7 +233,7 @@ static int config_handler(void* user, const char* section, const char* name, con pconfig->offset = strtoul(value, NULL, 10); } else if(MATCH("chimer95", "sample_rate")) { pconfig->sample_rate = atoi(value); - } else if(MATCH("chimer95", "sample_rate")) { + } else if(MATCH("chimer95", "test_mode")) { pconfig->test_mode = atoi(value); } else if(MATCH("devices", "chimer")) { strncpy(dv->output, value, 63);