mirror of
https://github.com/vicliu624/trail-mate.git
synced 2026-08-28 05:24:08 +00:00
refactor: align board runtimes, GAT562 app shell, and BLE integrations
- migrate ESP board-specific implementations and runtime adapters into boards/* - continue GAT562/Tab5/UI runtime alignment across app and board layers - sync BLE and runtime integrations, and apply repository clang-format rules
This commit is contained in:
@@ -66,6 +66,7 @@ lv_obj_t* s_chat_badge = nullptr;
|
||||
lv_obj_t* s_chat_badge_label = nullptr;
|
||||
TeamSnapshotCache s_team_cache;
|
||||
constexpr uint32_t kTeamSnapshotRefreshMs = 5000;
|
||||
bool s_menu_active = true;
|
||||
|
||||
bool obj_valid(lv_obj_t* obj)
|
||||
{
|
||||
@@ -192,6 +193,11 @@ void apply_menu_badge(const StatusSnapshot& snap)
|
||||
|
||||
void status_timer_cb(lv_timer_t* /*timer*/)
|
||||
{
|
||||
if (!s_menu_active)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
StatusSnapshot snap = collect_status();
|
||||
|
||||
apply_menu_icons(snap);
|
||||
@@ -244,6 +250,25 @@ void force_update()
|
||||
status_timer_cb(nullptr);
|
||||
}
|
||||
|
||||
void set_menu_active(bool active)
|
||||
{
|
||||
s_menu_active = active;
|
||||
if (s_status_timer == nullptr)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (active)
|
||||
{
|
||||
lv_timer_resume(s_status_timer);
|
||||
status_timer_cb(nullptr);
|
||||
}
|
||||
else
|
||||
{
|
||||
lv_timer_pause(s_status_timer);
|
||||
}
|
||||
}
|
||||
|
||||
int get_total_unread()
|
||||
{
|
||||
chat::ChatService& chat = app::messagingFacade().getChatService();
|
||||
|
||||
Reference in New Issue
Block a user