diff options
| author | Neil O'Fix <69880003+nlfx@users.noreply.github.com> | 2021-06-26 18:53:32 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-26 18:53:32 (GMT) |
| commit | 0045fb16b66b008c13888312b92688dcb7535a0c (patch) | |
| tree | ae945a9184c1fe5f47003c9a6ef8e05a389d9f25 /src/systemtask/SystemTask.h | |
| parent | 883700fca13a45b6cb0af4d74e3ef276a2d69283 (diff) | |
SPI flash sleep if bootloader >= 1.0.0 (#322)
* Retrieve and display bootloader version
- Display bootloader version on System Info screen
- Enable SPI flash sleep mode if bootloader version >= 1.0.0
* Wait for SPI flash to wakeup before starting OTA DFU
Diffstat (limited to 'src/systemtask/SystemTask.h')
| -rw-r--r-- | src/systemtask/SystemTask.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/systemtask/SystemTask.h b/src/systemtask/SystemTask.h index fa6a949..f563640 100644 --- a/src/systemtask/SystemTask.h +++ b/src/systemtask/SystemTask.h @@ -73,6 +73,10 @@ namespace Pinetime { return nimbleController; }; + bool IsSleeping() const { + return isSleeping; + } + private: TaskHandle_t taskHandle; |
