1
0
forked from me/IronOS

Starting hall effect support

This commit is contained in:
Ben V. Brown
2020-10-13 18:46:37 +11:00
parent 2c626d7203
commit 58c4ecaea6
8 changed files with 103 additions and 2 deletions

View File

@@ -383,6 +383,11 @@ static bool shouldBeSleeping() {
if ((xTaskGetTickCount() - lastMovementTime) > getSleepTimeout() && (xTaskGetTickCount() - lastButtonTime) > getSleepTimeout()) {
return true;
}
#ifdef HALL_SENSOR
//If the hall effect sensor is enabled in the build, check if its over threshold, and if so then we force sleep
#endif
return false;
}
static void gui_solderingMode(uint8_t jumpToSleep) {