update eq_flash_storage
This commit is contained in:
@@ -746,7 +746,7 @@ int eq_save_dirty_params(void) {
|
|||||||
DPRINTF(" Saving dirty single parameter: mode=%d, ch=%d, band=%d (applying to all sample rates)\n",
|
DPRINTF(" Saving dirty single parameter: mode=%d, ch=%d, band=%d (applying to all sample rates)\n",
|
||||||
param->mode, param->channel, param->band_index);
|
param->mode, param->channel, param->band_index);
|
||||||
if (param->mode < EQ_USER_MODE_MIN || param->mode > EQ_USER_MODE_MAX ) {
|
if (param->mode < EQ_USER_MODE_MIN || param->mode > EQ_USER_MODE_MAX ) {
|
||||||
printf(" Invalid mode %d, only user modes (%d-%d) can be saved\n", param->mode, EQ_USER_MODE_MIN, EQ_USER_MODE_MAX);
|
DPRINTF(" Invalid mode %d, only user modes (%d-%d) can be saved\n", param->mode, EQ_USER_MODE_MIN, EQ_USER_MODE_MAX);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (eq_save_single_param(param->sample_rate, param->mode, param->channel, param->band_index) == 0) {
|
if (eq_save_single_param(param->sample_rate, param->mode, param->channel, param->band_index) == 0) {
|
||||||
@@ -2014,4 +2014,3 @@ int eq_flash_load_eq_enable(void)
|
|||||||
DPRINTF(" Successfully loaded EQ enable %d from Flash (independent file)\n", eq_enable);
|
DPRINTF(" Successfully loaded EQ enable %d from Flash (independent file)\n", eq_enable);
|
||||||
return eq_enable;
|
return eq_enable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user