summaryrefslogtreecommitdiff
path: root/src/SystemTask/SystemTask.h
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-05-01 21:58:31 +0200
committerJF <jf@codingfield.com>2020-05-01 21:58:31 +0200
commit87c6556ad049077ab14398637031ea029b321baf (patch)
tree55fbc74c2ea30425a5def6deab44433581445958 /src/SystemTask/SystemTask.h
parent56b527925ce64bc0a9ef4b0ca51a1648b6400e04 (diff)
Defer the discovery of services using the system task.
Diffstat (limited to 'src/SystemTask/SystemTask.h')
-rw-r--r--src/SystemTask/SystemTask.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/SystemTask/SystemTask.h b/src/SystemTask/SystemTask.h
index 5eba391b..65cfdd8f 100644
--- a/src/SystemTask/SystemTask.h
+++ b/src/SystemTask/SystemTask.h
@@ -14,7 +14,7 @@ namespace Pinetime {
namespace System {
class SystemTask {
public:
- enum class Messages {GoToSleep, GoToRunning, OnNewTime, OnNewNotification
+ enum class Messages {GoToSleep, GoToRunning, OnNewTime, OnNewNotification, BleConnected
};
SystemTask(Drivers::SpiMaster &spi, Drivers::St7789 &lcd, Drivers::Cst816S &touchPanel,
@@ -58,7 +58,8 @@ namespace Pinetime {
static void Process(void* instance);
void Work();
-
+ bool isBleDiscoveryTimerRunning = false;
+ uint8_t bleDiscoveryTimer = 0;
};
}