InfiniTime.git

commit 6f923568732f42858e037c9ab19acca41cb7233f

Author: JF <jf@codingfield.com>

Call SpiNorFlash::WakeUp() during initialization to ensure that the chip is not is sleep mode.

 src/SystemTask/SystemTask.cpp | 1 +
 src/graphics.cpp | 1 +


diff --git a/src/SystemTask/SystemTask.cpp b/src/SystemTask/SystemTask.cpp
index 222829d4bd55d7d4bb97a550f990c1073c8316bb..a4e635602e68db5ffba113844863fd4ebae79fa0 100644
--- a/src/SystemTask/SystemTask.cpp
+++ b/src/SystemTask/SystemTask.cpp
@@ -58,6 +58,7 @@   APP_GPIOTE_INIT(2);
 
   spi.Init();
   spiNorFlash.Init();
+  spiNorFlash.Wakeup();
   nimbleController.Init();
   nimbleController.StartAdvertising();
   lcd.Init();




diff --git a/src/graphics.cpp b/src/graphics.cpp
index b8376d6dde52f2ff26c9d806c2b9bafa4809e5c2..9373a9b61612bb94be9bb05f22dcdb8985a884e3 100644
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -79,6 +79,7 @@
   NRF_LOG_INFO("Init...");
   spi.Init();
   spiNorFlash.Init();
+  spiNorFlash.Wakeup();
   brightnessController.Init();
   lcd.Init();
   gfx.Init();