close config parser after use for reading calibration

This commit is contained in:
Mario Hüttel 2020-11-01 21:03:00 +01:00
parent 57308e18e3
commit 88360fe307

View File

@ -153,6 +153,8 @@ int sd_card_settings_try_load_calibration(float *sens_deviation, float *offset)
res != CONFIG_PARSER_GENERIC_ERR &&
res != CONFIG_PARSER_IOERR);
config_parser_close_file(p);
if (sens_loaded && offset_loaded)
status = 0;