Remove the deep-sleep feature entirely (user decision): power manager, Settings switch, NVS key, sleep bit in the shared header, wiki page and cheat-sheet entries
Firmware / build (push) Successful in 6m59s
Firmware / build (push) Successful in 6m59s
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
#include "wifi_manager.h"
|
||||
#include "ota_update.h"
|
||||
#include "link_peer.h"
|
||||
#include "power_manager.h"
|
||||
#include "uart_manager.h"
|
||||
#include "espnow_link.h"
|
||||
#include "settings_manager.h"
|
||||
@@ -83,7 +82,6 @@ static Ota::phase_t g_upd_refusal_phase = Ota::PHASE_IDLE;
|
||||
static lv_obj_t* g_sys_can = NULL;
|
||||
static lv_obj_t* g_sys_link = NULL;
|
||||
static lv_obj_t* g_sys_dbg = NULL;
|
||||
static lv_obj_t* g_sys_sleep = NULL;
|
||||
static lv_obj_t* g_sys_info = NULL; // values column; keys are static
|
||||
|
||||
static void refresh(bool force);
|
||||
@@ -770,13 +768,7 @@ static void onDebugSwitch(lv_event_t* e) {
|
||||
UIStateManager::setDebugEnabled(on);
|
||||
}
|
||||
|
||||
static void onSleepSwitch(lv_event_t* e) {
|
||||
if (g_refreshing) return;
|
||||
PowerManager::setEnabled(lv_obj_has_state(lv_event_get_target(e), LV_STATE_CHECKED));
|
||||
}
|
||||
|
||||
static void refreshSystem(bool force) {
|
||||
setChecked(g_sys_sleep, PowerManager::isEnabled());
|
||||
setChecked(g_sys_can, CANDriver::isActive());
|
||||
setChecked(g_sys_link, UARTManager::getState() != UARTManager::UART_STATE_OFF);
|
||||
setChecked(g_sys_dbg, UIStateManager::isDebugEnabled());
|
||||
@@ -818,8 +810,6 @@ static void buildSystemPage(lv_obj_t* page) {
|
||||
g_sys_link = toggle(right, onLinkSwitch, NULL);
|
||||
makeSettingRow(c, "Performance overlay", "Frame rate and CPU load in the corner", &right);
|
||||
g_sys_dbg = toggle(right, onDebugSwitch, NULL);
|
||||
makeSettingRow(c, "Sleep when the car is off", "Both controllers sleep 60 s after the CAN bus goes quiet", &right);
|
||||
g_sys_sleep = toggle(right, onSleepSwitch, NULL);
|
||||
|
||||
// two labels side by side, same line spacing, so keys and values line up
|
||||
lv_obj_t* info = card(page);
|
||||
|
||||
Reference in New Issue
Block a user