update eq_flash_storage

This commit is contained in:
Steven Dan
2026-03-31 10:58:58 +08:00
parent 00e7cab17a
commit eae7e2178b

View File

@@ -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",
param->mode, param->channel, param->band_index);
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;
}
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);
return eq_enable;
}