mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Fix #62
This commit is contained in:
@@ -421,7 +421,8 @@ void DrawUI() {
|
||||
uint16_t temp = readIronTemp(0, 0, 0xFFFF);
|
||||
if (systemSettings.sensitivity) {
|
||||
if (millis() - getLastMovement() > (5 * 60 * 1000)
|
||||
&& (millis() - getLastButtonPress() > (5 * 60 * 1000))) {
|
||||
&& (millis() - getLastButtonPress() > (5 * 60 * 1000))
|
||||
&& (temp < 400)) {
|
||||
//OLED off
|
||||
Oled_DisplayOff();
|
||||
} else {
|
||||
@@ -434,7 +435,7 @@ void DrawUI() {
|
||||
//Check if movement in the last 5 minutes , if not sleep OLED
|
||||
|
||||
OLED_DrawIDLELogo(); //Draw the icons for prompting the user
|
||||
|
||||
temp = readIronTemp(0, 1, 0xFFFF);//to update the internal filter buffer
|
||||
break;
|
||||
case SOLDERING:
|
||||
//The user is soldering
|
||||
@@ -733,10 +734,8 @@ void DrawUI() {
|
||||
temp = readIronTemp(0, 1, 0xFFFF); //force temp re-reading
|
||||
|
||||
drawTemp(temp, 5, systemSettings.temperatureRounding);
|
||||
if (temp > 300)
|
||||
Oled_DisplayOn();
|
||||
if (temp > 500 && systemSettings.coolingTempBlink
|
||||
&& (millis() % 600) > 300)
|
||||
&& (millis() % 1000) > 500)
|
||||
OLED_InvertBuffer();
|
||||
break;
|
||||
case UVLOWARN:
|
||||
|
||||
@@ -26,7 +26,7 @@ const char* SettingsLongNames[14] =
|
||||
|
||||
const char* TempCalStatus[3] = { "Cal Temp", "Cal OK ", "Cal Fail" }; //All fixed 8 chars
|
||||
const char* UVLOWarningString = "Low Volt"; //Fixed width 8 chars
|
||||
const char* CoolingPromptString = "Cool "; //Fixed width 5 chars
|
||||
const char* CoolingPromptString = "Off "; //Fixed width 5 chars
|
||||
const char SettingTrueChar = 'T';
|
||||
const char SettingFalseChar = 'F';
|
||||
const char SettingSleepChar = 'S';
|
||||
@@ -62,7 +62,7 @@ const char* SettingsLongNames[14] =
|
||||
|
||||
const char* TempCalStatus[3] = {"CAL TEMP", "CAL OK ", "CAL FAIL"}; //All fixed 8 chars
|
||||
const char* UVLOWarningString = "LOW VOLT";//Fixed width 8 chars
|
||||
const char* CoolingPromptString = "COOL ";//Fixed width 5 chars
|
||||
const char* CoolingPromptString = "Cool ";//Fixed width 5 chars
|
||||
const char SettingTrueChar = 'V';
|
||||
const char SettingFalseChar = 'F';
|
||||
const char SettingSleepChar = 'S';
|
||||
|
||||
Reference in New Issue
Block a user