From 9c5adecd83939d760622078a12beba4d1ce4e0d3 Mon Sep 17 00:00:00 2001 From: liu weikai Date: Sun, 28 Jun 2026 23:57:03 +0800 Subject: [PATCH] fix: support gcc7 node projection cache update --- modules/core_phone/src/meshtastic/meshtastic_phone_core.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/core_phone/src/meshtastic/meshtastic_phone_core.cpp b/modules/core_phone/src/meshtastic/meshtastic_phone_core.cpp index 5f44c2bb..1a48c69e 100644 --- a/modules/core_phone/src/meshtastic/meshtastic_phone_core.cpp +++ b/modules/core_phone/src/meshtastic/meshtastic_phone_core.cpp @@ -679,7 +679,9 @@ bool MeshtasticPhoneCore::shouldProjectNodeInfo(chat::NodeId node_id, uint32_t s } } - node_projection_cache_[node_projection_cache_next_] = {node_id, signature}; + auto& cache_entry = node_projection_cache_[node_projection_cache_next_]; + cache_entry.node_id = node_id; + cache_entry.signature = signature; node_projection_cache_next_ = (node_projection_cache_next_ + 1U) % node_projection_cache_.size(); return true; }