diff options
| author | mark9064 <30447455+mark9064@users.noreply.github.com> | 2024-01-22 23:37:52 +0000 |
|---|---|---|
| committer | JF <JF002@users.noreply.github.com> | 2024-08-05 20:32:43 +0200 |
| commit | 3dca742b6566859aee89e1b943ae2ea5fc0eaa95 (patch) | |
| tree | 8520a6872ede1d78475211000d319b5e40b255c3 /src/systemtask | |
| parent | 20ac7e8df38836d0a72c378b900b99c827c996c2 (diff) | |
aod: PPI/RTC-based backlight brightness
Diffstat (limited to 'src/systemtask')
| -rw-r--r-- | src/systemtask/SystemTask.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp index fb7493aa..0dea5f98 100644 --- a/src/systemtask/SystemTask.cpp +++ b/src/systemtask/SystemTask.cpp @@ -102,7 +102,9 @@ void SystemTask::Work() { watchdog.Setup(7, Drivers::Watchdog::SleepBehaviour::Run, Drivers::Watchdog::HaltBehaviour::Pause); watchdog.Start(); NRF_LOG_INFO("Last reset reason : %s", Pinetime::Drivers::ResetReasonToString(watchdog.GetResetReason())); - APP_GPIOTE_INIT(2); + if (!nrfx_gpiote_is_init()) { + nrfx_gpiote_init(); + } spi.Init(); spiNorFlash.Init(); |
