Issue #26: Add overtemp limit setting to settings module and load it from EEPROM at startup

This commit is contained in:
2021-02-15 20:28:45 +01:00
parent 7c5b60ec6b
commit b9dfe35652
6 changed files with 50 additions and 4 deletions

View File

@@ -259,7 +259,7 @@ uint32_t safety_controller_get_timing_monitor_count(void);
* @param over_temperature Over temperature to set
* @return 0 if successfully saved and applied, negative if error
*/
int safety_controller_configure_overtemp_limit(float over_temperature);
int safety_controller_set_overtemp_limit(float over_temperature);
/**
* @brief Read the current overtemperature limit.

View File

@@ -29,7 +29,7 @@ int settings_eeprom_save_calibration(float sens, float offset, bool active);
int settings_eeprom_load_calibration(float *sens, float *offset, bool *active);
int settings_eeprom_save_overtemp_limit(float overtemp_limit);
int settings_eeprom_save_overtemp_limit(float overtemp_limit, bool active);
int settings_eeprom_load_overtemp_limit(float *overtemp_limit);

View File

@@ -54,6 +54,10 @@ int settings_load_calibration(float *sens_dev, float *offset);
enum settings_load_result settings_load_pid_oven_parameters(struct oven_pid_settings *settings);
enum settings_load_result settings_load_overtemp_limit(float *over_temp_limit);
int settings_save_overtemp_limit(float over_temp_limit, bool active);
void settings_setup(void);
#endif /* __SETTINGS_SETTINGS_H__ */