Skip to content

Commit

Permalink
Adds THERM_AUTOCALIBRATE_TEMP option.
Browse files Browse the repository at this point in the history
Configures the assumed temperature (default 21C) when performing thermal
autocalibration during a factory reset.
  • Loading branch information
fwiffo committed Aug 25, 2024
1 parent e43203f commit 3a27982
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/anduril/factory-reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ void factory_reset() {
thermal_config_save(1, temperature - cfg.therm_cal_offset);
#elif defined(USE_THERMAL_REGULATION) && defined(USE_THERM_AUTOCALIBRATE)
// assume current temperature is 21 C
thermal_config_save(1, 21);
#ifndef THERM_AUTOCALIBRATE_TEMP
#define THERM_AUTOCALIBRATE_TEMP 21
#endif
thermal_config_save(1, THERM_AUTOCALIBRATE_TEMP);
#endif

// save all settings to eeprom
Expand Down

0 comments on commit 3a27982

Please sign in to comment.