mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
add vSense lockout
This commit is contained in:
@@ -232,26 +232,29 @@ void waitForButtonPressOrTimeout(uint32_t timeout) {
|
|||||||
// returns true if undervoltage has occured
|
// returns true if undervoltage has occured
|
||||||
static bool checkVoltageForExit() {
|
static bool checkVoltageForExit() {
|
||||||
uint16_t v = getInputVoltageX10(systemSettings.voltageDiv);
|
uint16_t v = getInputVoltageX10(systemSettings.voltageDiv);
|
||||||
if ((v < lookupVoltageLevel(systemSettings.cutoutSetting))) {
|
//Dont check for first 1.5 seconds while the ADC stabilizes and the DMA fills the buffer
|
||||||
OLED::clearScreen();
|
if(xTaskGetTickCount()>150) {
|
||||||
OLED::setCursor(0, 0);
|
if ((v < lookupVoltageLevel(systemSettings.cutoutSetting))) {
|
||||||
if (systemSettings.detailedSoldering) {
|
OLED::clearScreen();
|
||||||
OLED::setFont(1);
|
OLED::setCursor(0, 0);
|
||||||
OLED::print(UndervoltageString);
|
if (systemSettings.detailedSoldering) {
|
||||||
OLED::setCursor(0, 8);
|
OLED::setFont(1);
|
||||||
OLED::print(InputVoltageString);
|
OLED::print(UndervoltageString);
|
||||||
printVoltage();
|
OLED::setCursor(0, 8);
|
||||||
OLED::print("V");
|
OLED::print(InputVoltageString);
|
||||||
|
printVoltage();
|
||||||
|
OLED::print("V");
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
OLED::setFont(0);
|
OLED::setFont(0);
|
||||||
OLED::print(UVLOWarningString);
|
OLED::print(UVLOWarningString);
|
||||||
|
}
|
||||||
|
|
||||||
|
OLED::refresh();
|
||||||
|
currentlyActiveTemperatureTarget = 0;
|
||||||
|
waitForButtonPress();
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
OLED::refresh();
|
|
||||||
currentlyActiveTemperatureTarget = 0;
|
|
||||||
waitForButtonPress();
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -1011,7 +1014,7 @@ void startPIDTask(void const *argument __unused) {
|
|||||||
if (xTaskGetTickCount() - lastPowerPulse < 20) {
|
if (xTaskGetTickCount() - lastPowerPulse < 20) {
|
||||||
// for the first 200mS turn on for a bit
|
// for the first 200mS turn on for a bit
|
||||||
setTipMilliWatts(4000); // typically its around 5W to hold the current temp, so this wont raise temp much
|
setTipMilliWatts(4000); // typically its around 5W to hold the current temp, so this wont raise temp much
|
||||||
}else
|
} else
|
||||||
setTipMilliWatts(0);
|
setTipMilliWatts(0);
|
||||||
//Then wait until the next second
|
//Then wait until the next second
|
||||||
if (xTaskGetTickCount() - lastPowerPulse > 100) {
|
if (xTaskGetTickCount() - lastPowerPulse > 100) {
|
||||||
|
|||||||
@@ -1,10 +1,20 @@
|
|||||||
eclipse.preferences.version=1
|
eclipse.preferences.version=1
|
||||||
|
environment/buildEnvironmentInclude/com.atollic.truestudio.configuration.release.200032419.2005314669/CPATH/delimiter=;
|
||||||
|
environment/buildEnvironmentInclude/com.atollic.truestudio.configuration.release.200032419.2005314669/CPATH/operation=remove
|
||||||
|
environment/buildEnvironmentInclude/com.atollic.truestudio.configuration.release.200032419.2005314669/C_INCLUDE_PATH/delimiter=;
|
||||||
|
environment/buildEnvironmentInclude/com.atollic.truestudio.configuration.release.200032419.2005314669/C_INCLUDE_PATH/operation=remove
|
||||||
|
environment/buildEnvironmentInclude/com.atollic.truestudio.configuration.release.200032419.2005314669/append=true
|
||||||
|
environment/buildEnvironmentInclude/com.atollic.truestudio.configuration.release.200032419.2005314669/appendContributed=true
|
||||||
environment/buildEnvironmentInclude/com.atollic.truestudio.configuration.release.200032419/CPATH/delimiter=;
|
environment/buildEnvironmentInclude/com.atollic.truestudio.configuration.release.200032419/CPATH/delimiter=;
|
||||||
environment/buildEnvironmentInclude/com.atollic.truestudio.configuration.release.200032419/CPATH/operation=remove
|
environment/buildEnvironmentInclude/com.atollic.truestudio.configuration.release.200032419/CPATH/operation=remove
|
||||||
environment/buildEnvironmentInclude/com.atollic.truestudio.configuration.release.200032419/C_INCLUDE_PATH/delimiter=;
|
environment/buildEnvironmentInclude/com.atollic.truestudio.configuration.release.200032419/C_INCLUDE_PATH/delimiter=;
|
||||||
environment/buildEnvironmentInclude/com.atollic.truestudio.configuration.release.200032419/C_INCLUDE_PATH/operation=remove
|
environment/buildEnvironmentInclude/com.atollic.truestudio.configuration.release.200032419/C_INCLUDE_PATH/operation=remove
|
||||||
environment/buildEnvironmentInclude/com.atollic.truestudio.configuration.release.200032419/append=true
|
environment/buildEnvironmentInclude/com.atollic.truestudio.configuration.release.200032419/append=true
|
||||||
environment/buildEnvironmentInclude/com.atollic.truestudio.configuration.release.200032419/appendContributed=true
|
environment/buildEnvironmentInclude/com.atollic.truestudio.configuration.release.200032419/appendContributed=true
|
||||||
|
environment/buildEnvironmentLibrary/com.atollic.truestudio.configuration.release.200032419.2005314669/LIBRARY_PATH/delimiter=;
|
||||||
|
environment/buildEnvironmentLibrary/com.atollic.truestudio.configuration.release.200032419.2005314669/LIBRARY_PATH/operation=remove
|
||||||
|
environment/buildEnvironmentLibrary/com.atollic.truestudio.configuration.release.200032419.2005314669/append=true
|
||||||
|
environment/buildEnvironmentLibrary/com.atollic.truestudio.configuration.release.200032419.2005314669/appendContributed=true
|
||||||
environment/buildEnvironmentLibrary/com.atollic.truestudio.configuration.release.200032419/LIBRARY_PATH/delimiter=;
|
environment/buildEnvironmentLibrary/com.atollic.truestudio.configuration.release.200032419/LIBRARY_PATH/delimiter=;
|
||||||
environment/buildEnvironmentLibrary/com.atollic.truestudio.configuration.release.200032419/LIBRARY_PATH/operation=remove
|
environment/buildEnvironmentLibrary/com.atollic.truestudio.configuration.release.200032419/LIBRARY_PATH/operation=remove
|
||||||
environment/buildEnvironmentLibrary/com.atollic.truestudio.configuration.release.200032419/append=true
|
environment/buildEnvironmentLibrary/com.atollic.truestudio.configuration.release.200032419/append=true
|
||||||
|
|||||||
Reference in New Issue
Block a user