mirror of
https://github.com/vicliu624/trail-mate.git
synced 2026-10-23 13:33:03 +00:00
fix: support gcc7 node projection cache update
This commit is contained in:
1 parent
b3ee6cb10a
commit
9c5adecd83
1 file changed
+3
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user