Remove toml. Write calibration to dat files. Implement first draft for reading function
This commit is contained in:
@@ -23,8 +23,16 @@
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#define CALIBRATION_FILE_NAME "cal.toml"
|
||||
#define CALIBRATION_FILE_NAME "settings.ini"
|
||||
|
||||
int sd_card_settings_save_calibration(float sens_deviation, float offset, bool active);
|
||||
|
||||
/**
|
||||
* @brief Try and load calibration from SD card
|
||||
* @param sens_deviation
|
||||
* @param offset
|
||||
* @return 0 if files found -1 if files errorneous, -2 if no files found
|
||||
*/
|
||||
int sd_card_settings_try_load_calibration(float *sens_deviation, float *offset);
|
||||
|
||||
#endif /* __SETTINGS_SETTINGS_SD_CARD_H__ */
|
||||
|
@@ -32,4 +32,6 @@
|
||||
*/
|
||||
int settings_save_calibration(float sens_deviation, float offset, bool active);
|
||||
|
||||
int settings_load_calibration(float *sens_dev, float *offset);
|
||||
|
||||
#endif /* __SETTINGS_SETTINGS_H__ */
|
||||
|
Reference in New Issue
Block a user