1
0
forked from me/IronOS

References

This commit is contained in:
Ben V. Brown
2022-11-22 18:26:16 +11:00
parent 27297fd692
commit 6cbb01db41
6 changed files with 16 additions and 952 deletions

View File

@@ -1,5 +1,8 @@
#include "OperatingModes.h"
extern bool heaterThermalRunaway;
void gui_solderingMode(uint8_t jumpToSleep) {
/*
* * Soldering (gui_solderingMode)
@@ -219,7 +222,7 @@ void gui_solderingMode(uint8_t jumpToSleep) {
return; // we want to exit soldering mode
}
#endif
if (shouldBeSleeping()) {
if (shouldBeSleeping(false)) {
if (gui_SolderingSleepingMode(false, false)) {
return; // If the function returns non-0 then exit
}

View File

@@ -1,5 +1,8 @@
#include "Buttons.hpp"
#include "OperatingModeUtilities.h"
#include "configuration.h"
#ifdef POW_DC
extern volatile uint32_t currentTempTargetDegC;
// returns true if undervoltage has occured
bool checkForUnderVoltage(void) {
if (!getIsPoweredByDCIN()) {

View File

@@ -1,6 +1,6 @@
#include "OperatingModeUtilities.h"
static void gui_drawBatteryIcon() {
void gui_drawBatteryIcon(void) {
#if defined(POW_PD) || defined(POW_QC)
if (!getIsPoweredByDCIN()) {
// On non-DC inputs we replace this symbol with the voltage we are operating on