Merge branch 'dev' into BLE
This commit is contained in:
@@ -125,6 +125,6 @@ const int32_t uVtoDegC[] = {
|
||||
38137, 500, //
|
||||
};
|
||||
#endif
|
||||
const int uVtoDegCItems = sizeof(uVtoDegC) / (2 * sizeof(uint16_t));
|
||||
const int uVtoDegCItems = sizeof(uVtoDegC) / (2 * sizeof(uVtoDegC[0]));
|
||||
|
||||
uint32_t TipThermoModel::convertuVToDegC(uint32_t tipuVDelta) { return Utils::InterpolateLookupTable(uVtoDegC, uVtoDegCItems, tipuVDelta); }
|
||||
|
||||
@@ -72,10 +72,7 @@ void unstick_I2C() {
|
||||
uint8_t getButtonA() { return (gpio_input_bit_get(KEY_A_GPIO_Port, KEY_A_Pin) == SET) ? 1 : 0; }
|
||||
uint8_t getButtonB() { return (gpio_input_bit_get(KEY_B_GPIO_Port, KEY_B_Pin) == SET) ? 1 : 0; }
|
||||
|
||||
void reboot() {
|
||||
// Spin for watchdog
|
||||
for (;;) {}
|
||||
}
|
||||
void reboot() { eclic_system_reset(); }
|
||||
|
||||
void delay_ms(uint16_t count) { delay_1ms(count); }
|
||||
uint32_t __get_IPSR(void) {
|
||||
|
||||
@@ -67,6 +67,6 @@ const int32_t uVtoDegC[] = {
|
||||
};
|
||||
#endif
|
||||
|
||||
const int uVtoDegCItems = sizeof(uVtoDegC) / (2 * sizeof(uint16_t));
|
||||
const int uVtoDegCItems = sizeof(uVtoDegC) / (2 * sizeof(uVtoDegC[0]));
|
||||
|
||||
uint32_t TipThermoModel::convertuVToDegC(uint32_t tipuVDelta) { return Utils::InterpolateLookupTable(uVtoDegC, uVtoDegCItems, tipuVDelta); }
|
||||
|
||||
@@ -126,8 +126,7 @@ uint8_t getButtonB() {
|
||||
}
|
||||
|
||||
void reboot() {
|
||||
// Spin for watchdog
|
||||
for (;;) {}
|
||||
hal_system_reset();
|
||||
}
|
||||
|
||||
void delay_ms(uint16_t count) {
|
||||
|
||||
@@ -99,18 +99,14 @@ struct TranslationIndexTable {
|
||||
uint16_t SettingRightChar;
|
||||
uint16_t SettingLeftChar;
|
||||
uint16_t SettingAutoChar;
|
||||
uint16_t SettingFastChar;
|
||||
uint16_t SettingOffChar;
|
||||
uint16_t SettingSlowChar;
|
||||
uint16_t SettingMediumChar;
|
||||
uint16_t SettingOffChar;
|
||||
uint16_t SettingFastChar;
|
||||
uint16_t SettingStartNoneChar;
|
||||
uint16_t SettingStartSolderingChar;
|
||||
uint16_t SettingStartSleepChar;
|
||||
uint16_t SettingStartSleepOffChar;
|
||||
uint16_t SettingStartNoneChar;
|
||||
uint16_t SettingSensitivityOff;
|
||||
uint16_t SettingSensitivityLow;
|
||||
uint16_t SettingSensitivityMedium;
|
||||
uint16_t SettingSensitivityHigh;
|
||||
uint16_t SettingLockDisableChar;
|
||||
uint16_t SettingLockBoostChar;
|
||||
uint16_t SettingLockFullChar;
|
||||
|
||||
@@ -71,7 +71,7 @@ static const SettingConstants settingsConstants[(int)SettingsOptions::SettingsOp
|
||||
{1, POWER_PULSE_WAIT_MAX, 1, POWER_PULSE_WAIT_DEFAULT}, // KeepAwakePulseWait
|
||||
{1, POWER_PULSE_DURATION_MAX, 1, POWER_PULSE_DURATION_DEFAULT}, // KeepAwakePulseDuration
|
||||
{360, 900, 1, VOLTAGE_DIV}, // VoltageDiv
|
||||
{MIN_TEMP_C, MAX_TEMP_F, 10, BOOST_TEMP}, // BoostTemp
|
||||
{0, MAX_TEMP_F, 10, BOOST_TEMP}, // BoostTemp
|
||||
{MIN_CALIBRATION_OFFSET, 2500, 1, CALIBRATION_OFFSET}, // CalibrationOffset
|
||||
{0, MAX_POWER_LIMIT, POWER_LIMIT_STEPS, POWER_LIMIT}, // PowerLimit
|
||||
{0, 1, 1, REVERSE_BUTTON_TEMP_CHANGE}, // ReverseButtonTempChangeEnabled
|
||||
|
||||
@@ -682,6 +682,7 @@ static bool setCalibrateVIN(void) {
|
||||
case BUTTON_F_LONG:
|
||||
case BUTTON_B_LONG:
|
||||
saveSettings();
|
||||
OLED::clearScreen();
|
||||
OLED::setCursor(0, 0);
|
||||
OLED::printNumber(getSettingValue(SettingsOptions::VoltageDiv), 3, FontStyle::LARGE);
|
||||
OLED::refresh();
|
||||
@@ -719,7 +720,8 @@ static void displayPowerPulseDuration(void) { OLED::printNumber(getSettingValue(
|
||||
static bool setResetSettings(void) {
|
||||
if (userConfirmation(translatedString(Tr->SettingsResetWarning))) {
|
||||
resetSettings();
|
||||
warnUser(translatedString(Tr->ResetOKMessage), 10 * TICKS_SECOND);
|
||||
warnUser(translatedString(Tr->ResetOKMessage), 3 * TICKS_SECOND);
|
||||
reboot();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -186,7 +186,7 @@ void drawHomeScreen(bool buttonLockout) {
|
||||
// If we have a tip connected draw the temp, if not we leave it blank
|
||||
if (!tipDisconnectedDisplay) {
|
||||
// draw in the temp
|
||||
if (!(getSettingValue(SettingsOptions::CoolingTempBlink) && (xTaskGetTickCount() % 260 < 160)))
|
||||
if (!(getSettingValue(SettingsOptions::CoolingTempBlink) && (xTaskGetTickCount() % 1000 < 300)))
|
||||
gui_drawTipTemp(false, FontStyle::LARGE); // draw in the temp
|
||||
} else {
|
||||
// Draw in missing tip symbol
|
||||
@@ -210,4 +210,4 @@ void drawHomeScreen(bool buttonLockout) {
|
||||
GUIDelay();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user