From 6f923568732f42858e037c9ab19acca41cb7233f Mon Sep 17 00:00:00 2001 From: JF Date: Sun, 20 Sep 2020 14:31:26 +0200 Subject: [PATCH] Call SpiNorFlash::WakeUp() during initialization to ensure that the chip is not is sleep mode. --- src/SystemTask/SystemTask.cpp | 1 + src/graphics.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/SystemTask/SystemTask.cpp b/src/SystemTask/SystemTask.cpp index 222829d4..a4e63560 100644 --- a/src/SystemTask/SystemTask.cpp +++ b/src/SystemTask/SystemTask.cpp @@ -58,6 +58,7 @@ void SystemTask::Work() { spi.Init(); spiNorFlash.Init(); + spiNorFlash.Wakeup(); nimbleController.Init(); nimbleController.StartAdvertising(); lcd.Init(); diff --git a/src/graphics.cpp b/src/graphics.cpp index b8376d6d..9373a9b6 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -79,6 +79,7 @@ void Process(void* instance) { NRF_LOG_INFO("Init..."); spi.Init(); spiNorFlash.Init(); + spiNorFlash.Wakeup(); brightnessController.Init(); lcd.Init(); gfx.Init();