mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-04 02:34:14 +00:00
init max last heard during bootup and cleanup
This commit is contained in:
parent
0383c29383
commit
e91651b7ff
@ -916,6 +916,9 @@ void NodeDB::cleanupMeshDB()
|
||||
int newPos = 0, removed = 0;
|
||||
for (int i = 0; i < numMeshNodes; i++) {
|
||||
if (meshNodes->at(i).has_user) {
|
||||
if (meshNodes->at(i).last_heard > maxLastHeard_) {
|
||||
maxLastHeard_ = meshNodes->at(i).last_heard;
|
||||
}
|
||||
if (meshNodes->at(i).user.public_key.size > 0) {
|
||||
if (memfll(meshNodes->at(i).user.public_key.bytes, 0, meshNodes->at(i).user.public_key.size)) {
|
||||
meshNodes->at(i).user.public_key.size = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user