Fix bugs in settings saving

This commit is contained in:
2020-08-16 22:11:57 +02:00
parent 6c92048de5
commit 543127b187
3 changed files with 13 additions and 3 deletions

View File

@@ -121,7 +121,7 @@ int sd_card_settings_save_calibration(float sens_deviation, float offset, bool a
int ret = 0;
status = create_controller_folder();
if (status)
if (status < 0)
return -2;
get_controller_settings_path(path, sizeof(path), "offset");