mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-02 19:02:00 +00:00
refactor(ui): remove dead code and fix stale comments after the review
- ui-core: Diagnostics::systemLines, NearbyModel::typeShort, rptctl::currentPresetName, RoomSessions::pendingKey, settings::isSwitch, UiCore::reconcileDMUnread. - ui-new: the retired Recent page, fmtAlt, the battMvToPercent wrapper, setFavouriteChannelSlot, AccordionList onHeader/visibleCount, drawBoxedIcon and seven unused icons; info::row folded into info::valueRow. - ui-lvgl: onOpenNav, TileDownloader::withTrails; the trail header size is one constant (TRAIL_HDR) for live and saved trails. - Home quick panels save prefs only when a value changed. - Comments brought in line with the code (status bar reserve, settings rows, page order, SH1106 frame skip, UiCore header). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -543,14 +543,6 @@ extern "C" EMSCRIPTEN_KEEPALIVE int sim_test_set_timezone_hours(int hours) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
// auto_off_secs (NodePrefs.h) defaults to 15 -- a real device's screen
|
||||
// (and, if auto_lock is also set, the UI itself) turns off/locks 15s
|
||||
// after the last input, real power-saving behaviour a battery-powered
|
||||
// board actually needs. UITask::autoOffMillis() (ui-new/UITask.h) treats
|
||||
// 0 as "never" and skips the whole turnOff()/auto_lock branch in
|
||||
// UITask::loop() entirely -- there's no separate flag to touch. A demo
|
||||
// running on a visitor's screen has no battery to save and no reason to
|
||||
// go dark or lock itself while they're reading it.
|
||||
// Renames this instance (NodePrefs::node_name, what Settings > Name sets) so
|
||||
// a host page's peers have readable names in screenshots, instead of the
|
||||
// default hex of their public key. In memory only; the next advert carries it.
|
||||
@@ -562,6 +554,14 @@ extern "C" EMSCRIPTEN_KEEPALIVE int sim_test_set_node_name(const char* name) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
// auto_off_secs (NodePrefs.h) defaults to 15 -- a real device's screen
|
||||
// (and, if auto_lock is also set, the UI itself) turns off/locks 15s
|
||||
// after the last input, real power-saving behaviour a battery-powered
|
||||
// board actually needs. UITask::autoOffMillis() (ui-new/UITask.h) treats
|
||||
// 0 as "never" and skips the whole turnOff()/auto_lock branch in
|
||||
// UITask::loop() entirely -- there's no separate flag to touch. A demo
|
||||
// running on a visitor's screen has no battery to save and no reason to
|
||||
// go dark or lock itself while they're reading it.
|
||||
extern "C" EMSCRIPTEN_KEEPALIVE int sim_test_disable_screen_timeout() {
|
||||
if (!g_sim_ready) return 0;
|
||||
NodePrefs* prefs = the_mesh.getNodePrefs();
|
||||
|
||||
Reference in New Issue
Block a user