Refactor doNotGoToSleep to a wakelock counter

This commit is contained in:
mark9064
2024-08-23 00:15:24 +01:00
committed by NeroBurner
parent c3d05901a0
commit 7ca0418c82
17 changed files with 87 additions and 41 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include "systemtask/SystemTask.h"
#include "systemtask/WakeLock.h"
#include "components/motor/MotorController.h"
#include "displayapp/screens/Screen.h"
#include "Symbols.h"
@@ -21,7 +22,7 @@ namespace Pinetime {
TickType_t startTime = 0;
TickType_t tappedTime = 0;
Controllers::MotorController& motorController;
System::SystemTask& systemTask;
System::WakeLock wakeLock;
int16_t bpm = 120;
uint8_t bpb = 4;
uint8_t counter = 1;