diff options
| author | Tim Keller <geekboy1011@gmail.com> | 2021-10-17 21:33:01 (GMT) |
|---|---|---|
| committer | Tim Keller <geekboy1011@gmail.com> | 2021-12-10 01:18:57 (GMT) |
| commit | 2690c274af72cfbac88a8c83fce311665a917a93 (patch) | |
| tree | 17736e67dd4bf63b2df5aeeb1ce2ee0151285249 /src/drivers/SpiMaster.h | |
| parent | 1dd71744802b4ae80c8952f73bbf0051fbe12cf3 (diff) | |
Workaround for SPI bus being asleep.
This needs to get cherrypicked to another PR as SPI Sleep needs to use a semaphore or something
Diffstat (limited to 'src/drivers/SpiMaster.h')
| -rw-r--r-- | src/drivers/SpiMaster.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/SpiMaster.h b/src/drivers/SpiMaster.h index 5ea624f..f5d2b12 100644 --- a/src/drivers/SpiMaster.h +++ b/src/drivers/SpiMaster.h @@ -60,6 +60,8 @@ namespace Pinetime { volatile size_t currentBufferSize = 0; volatile TaskHandle_t taskToNotify; SemaphoreHandle_t mutex = nullptr; + + bool active; }; } } |
