Settings: Add preliminary functions to store Claibration data on SD Card. Not yet implemented correctly
This commit is contained in:
@@ -21,4 +21,8 @@
|
||||
#ifndef __SETTINGS_SETTINGS_SD_CARD_H__
|
||||
#define __SETTINGS_SETTINGS_SD_CARD_H__
|
||||
|
||||
#define CALIBRATION_FILE_NAME "cal.toml"
|
||||
|
||||
int sd_card_settings_save_calibration(float sens_deviation, float offset);
|
||||
|
||||
#endif /* __SETTINGS_SETTINGS_SD_CARD_H__ */
|
||||
|
@@ -22,6 +22,12 @@
|
||||
#ifndef __SETTINGS_SETTINGS_H__
|
||||
#define __SETTINGS_SETTINGS_H__
|
||||
|
||||
int settings_save_calibration();
|
||||
/**
|
||||
* @brief Save the calibration
|
||||
* @param sens_deviation
|
||||
* @param offset
|
||||
* @return 0 if successful, -1 if generic error, -2 if medium unavailable
|
||||
*/
|
||||
int settings_save_calibration(float sens_deviation, float offset);
|
||||
|
||||
#endif /* __SETTINGS_SETTINGS_H__ */
|
||||
|
Reference in New Issue
Block a user