Do not send the SLEEP command to the SPI NOR Flash to prevent the bootloader from being stuck in an infinite loop (because it cannot initialize the chip while it's in sleep mode).

Version 0.8.3.
This commit is contained in:
JF 2020-10-27 11:41:53 +01:00
parent b6a910e52e
commit e1ac466a97
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.10)
project(pinetime VERSION 0.8.2 LANGUAGES C CXX ASM)
project(pinetime VERSION 0.8.3 LANGUAGES C CXX ASM)
set(NRF_TARGET "nrf52")

View File

@ -158,7 +158,10 @@ void SystemTask::Work() {
ReloadIdleTimer();
break;
case Messages::OnDisplayTaskSleeping:
spiNorFlash.Sleep();
// BUG : Bootloader v4.1.7 cannot wake the chip up and enters into an infinite loop, which bricks devices.
// Sleep mode is disabled until we can detect the version of the bootloader and enable sleep mode on
// supported versions only
//spiNorFlash.Sleep();
lcd.Sleep();
touchPanel.Sleep();