close config parser after use for reading calibration
This commit is contained in:
parent
57308e18e3
commit
88360fe307
@ -153,6 +153,8 @@ int sd_card_settings_try_load_calibration(float *sens_deviation, float *offset)
|
|||||||
res != CONFIG_PARSER_GENERIC_ERR &&
|
res != CONFIG_PARSER_GENERIC_ERR &&
|
||||||
res != CONFIG_PARSER_IOERR);
|
res != CONFIG_PARSER_IOERR);
|
||||||
|
|
||||||
|
config_parser_close_file(p);
|
||||||
|
|
||||||
if (sens_loaded && offset_loaded)
|
if (sens_loaded && offset_loaded)
|
||||||
status = 0;
|
status = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user