diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-07-27 18:41:02 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-27 22:42:34 +0000 |
commit | 3f828e9244140e7860e961917fc96e42b2a866ca (patch) | |
tree | 6d063ae785df4616b4f909da11a802df47a95636 /apps/settings.c | |
parent | b9d13b898d6cb81f60eb819f53276a9ac1e11dad (diff) |
FS#13220: Allow sound settings to be saved again
(Basically this reverts bf546fbfcb and its successors)
Change-Id: I044cfb797d306412837e7509cb85b65bc6ffacca
Diffstat (limited to 'apps/settings.c')
-rw-r--r-- | apps/settings.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/apps/settings.c b/apps/settings.c index 6cecffcb91..b72808b510 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -300,14 +300,7 @@ bool settings_load_config(const char* file, bool apply) #endif if (settings[i].cfg_vals == NULL) { - int temp = atoi(value); - if (settings[i].flags&F_ALLOW_ARBITRARY_VALS || - (temp >= settings[i].int_setting->min && - temp <= settings[i].int_setting->max && - temp % settings[i].int_setting->step == 0)) - { - *(int*)settings[i].setting = temp; - } + *(int*)settings[i].setting = atoi(value); } else { |