summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-09-20 12:31:26 (GMT)
committerJF <jf@codingfield.com>2020-09-20 12:31:26 (GMT)
commit6f923568732f42858e037c9ab19acca41cb7233f (patch)
treeb29b718f91beb15fec79e44d2bc0a317d50606f7
parent8d2e56bf00281bb44d7c4a8a903215c62ddff510 (diff)
Call SpiNorFlash::WakeUp() during initialization to ensure that the chip is not is sleep mode.
-rw-r--r--src/SystemTask/SystemTask.cpp1
-rw-r--r--src/graphics.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/SystemTask/SystemTask.cpp b/src/SystemTask/SystemTask.cpp
index 222829d..a4e6356 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 b8376d6..9373a9b 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();