mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-07-31 08:49:17 +02:00
fix some stuff
This commit is contained in:
+2
-2
@@ -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
|
#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);
|
pconfig->freq = strtof(value, NULL);
|
||||||
} else if(MATCH("chimer95", "volume")) {
|
} else if(MATCH("chimer95", "volume")) {
|
||||||
pconfig->master_volume = strtof(value, NULL);
|
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);
|
pconfig->offset = strtoul(value, NULL, 10);
|
||||||
} else if(MATCH("chimer95", "sample_rate")) {
|
} else if(MATCH("chimer95", "sample_rate")) {
|
||||||
pconfig->sample_rate = atoi(value);
|
pconfig->sample_rate = atoi(value);
|
||||||
} else if(MATCH("chimer95", "sample_rate")) {
|
} else if(MATCH("chimer95", "test_mode")) {
|
||||||
pconfig->test_mode = atoi(value);
|
pconfig->test_mode = atoi(value);
|
||||||
} else if(MATCH("devices", "chimer")) {
|
} else if(MATCH("devices", "chimer")) {
|
||||||
strncpy(dv->output, value, 63);
|
strncpy(dv->output, value, 63);
|
||||||
|
|||||||
Reference in New Issue
Block a user