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:
liu weikai
2026-03-23 11:20:39 +08:00
parent 9cf12df3e8
commit 25381c5c22
144 changed files with 462381 additions and 27440 deletions
+25
View File
@@ -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();