From 74f2552c29b0eb2a2b31c3dced0a475182cb6bb6 Mon Sep 17 00:00:00 2001 From: GenesiaW <74142392+GenesiaW@users.noreply.github.com> Date: Wed, 28 Jan 2026 17:39:08 +0800 Subject: [PATCH] feat: holding back button while booting, boots to home screen as a mean of escaping boot loop --- USER_GUIDE.md | 13 +++++++++++++ src/main.cpp | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/USER_GUIDE.md b/USER_GUIDE.md index 06973c92..deeb2e9d 100644 --- a/USER_GUIDE.md +++ b/USER_GUIDE.md @@ -21,6 +21,7 @@ Welcome to the **CrossPoint** firmware. This guide outlines the hardware control - [System Navigation](#system-navigation) - [5. Chapter Selection Screen](#5-chapter-selection-screen) - [6. Current Limitations \& Roadmap](#6-current-limitations--roadmap) + - [7. Troubleshooting Issues \& Escaping Bootloop](#7-troubleshooting-issues--escaping-bootloop) ## 1. Hardware Overview @@ -220,3 +221,15 @@ Accessible by pressing **Confirm** while inside a book. Please note that this firmware is currently in active development. The following features are **not yet supported** but are planned for future updates: * **Images:** Embedded images in e-books will not render. + +--- + +## 7. Troubleshooting Issues & Escaping Bootloop + +If an issue or crash is encountered while using Crosspoint, feel free to raise an issue ticket and attach the serial monitor logs. The logs can be obtained by connecting the device to a computer and starting a serial monitor. Either [Serial Monitor](https://www.serialmonitor.org/) or the following command can be used: + +``` +pio device monitor +``` + +If the device is stuck in a bootloop, press and release the Reset button. Then, press and hold on to the configured Back button and the Power Button to boot to the Home Screen. diff --git a/src/main.cpp b/src/main.cpp index 2308f0a2..2456f96e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -311,7 +311,7 @@ void setup() { APP_STATE.loadFromFile(); RECENT_BOOKS.loadFromFile(); - if (APP_STATE.openEpubPath.empty()) { + if (APP_STATE.openEpubPath.empty() || mappedInputManager.isPressed(MappedInputManager::Button::Back)) { onGoHome(); } else { // Clear app state to avoid getting into a boot loop if the epub doesn't load