Update readme, cleanup files
This commit is contained in:
@@ -82,7 +82,7 @@ void resetSettings() {
|
|||||||
systemSettings.sensitivity = 8; //Default high sensitivity
|
systemSettings.sensitivity = 8; //Default high sensitivity
|
||||||
systemSettings.voltageDiv = 144; //Default divider from schematic
|
systemSettings.voltageDiv = 144; //Default divider from schematic
|
||||||
systemSettings.ShutdownTime = 30; //How many minutes until the unit turns itself off
|
systemSettings.ShutdownTime = 30; //How many minutes until the unit turns itself off
|
||||||
systemSettings.boostModeEnabled = 0; //Default to safe, with no boost mode
|
systemSettings.boostModeEnabled = 1; //Default to safe, with no boost mode
|
||||||
systemSettings.BoostTemp = 420; //default to 400C
|
systemSettings.BoostTemp = 420; //default to 400C
|
||||||
systemSettings.powerDisplay = 0; //default to power display being off
|
systemSettings.powerDisplay = 0; //default to power display being off
|
||||||
systemSettings.autoStartMode = 0; //Auto start off for safety
|
systemSettings.autoStartMode = 0; //Auto start off for safety
|
||||||
|
|||||||
@@ -202,6 +202,8 @@ static void settings_setCalibrate(void) {
|
|||||||
uint8_t maxOffset = strlen(SettingsCalibrationWarning);
|
uint8_t maxOffset = strlen(SettingsCalibrationWarning);
|
||||||
uint32_t descriptionStart = HAL_GetTick();
|
uint32_t descriptionStart = HAL_GetTick();
|
||||||
lcd.setFont(0);
|
lcd.setFont(0);
|
||||||
|
lcd.clearScreen();
|
||||||
|
lcd.setCursor(0, 0);
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
|
||||||
int16_t descriptionOffset = ((HAL_GetTick() - descriptionStart) / 150) % maxOffset;
|
int16_t descriptionOffset = ((HAL_GetTick() - descriptionStart) / 150) % maxOffset;
|
||||||
@@ -214,6 +216,7 @@ static void settings_setCalibrate(void) {
|
|||||||
//User confirmed
|
//User confirmed
|
||||||
//So we now perform the actual calculation
|
//So we now perform the actual calculation
|
||||||
lcd.clearScreen();
|
lcd.clearScreen();
|
||||||
|
lcd.setCursor(0, 0);
|
||||||
lcd.print(".....");
|
lcd.print(".....");
|
||||||
lcd.refresh();
|
lcd.refresh();
|
||||||
setCalibrationOffset(0); //turn off the current offset
|
setCalibrationOffset(0); //turn off the current offset
|
||||||
|
|||||||
Reference in New Issue
Block a user