mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-27 03:23:54 +01:00
fix some stuff
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user