diff options
| author | JF <jf@codingfield.com> | 2020-05-01 19:58:31 (GMT) |
|---|---|---|
| committer | JF <jf@codingfield.com> | 2020-05-01 19:58:31 (GMT) |
| commit | 87c6556ad049077ab14398637031ea029b321baf (patch) | |
| tree | 55fbc74c2ea30425a5def6deab44433581445958 /src/SystemTask/SystemTask.h | |
| parent | 56b527925ce64bc0a9ef4b0ca51a1648b6400e04 (diff) | |
Defer the discovery of services using the system task.
Diffstat (limited to 'src/SystemTask/SystemTask.h')
| -rw-r--r-- | src/SystemTask/SystemTask.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/SystemTask/SystemTask.h b/src/SystemTask/SystemTask.h index 5eba391..65cfdd8 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; }; } |
