1
0
forked from me/IronOS

Track and return Operating Mode with BLE (#1553)

Track and return Operating Mode with BLE
This commit is contained in:
Thomas White
2023-02-04 06:33:43 +08:00
committed by GitHub
parent e19e1a066d
commit 9802a622d5
7 changed files with 33 additions and 3 deletions

View File

@@ -1,7 +1,10 @@
#include "OperatingModes.h"
extern OperatingMode currentMode;
int gui_SolderingSleepingMode(bool stayOff, bool autoStarted) {
// Drop to sleep temperature and display until movement or button press
currentMode = OperatingMode::sleeping;
for (;;) {
// user moved or pressed a button, go back to soldering