Skip to content

Commit c49ecc1

Browse files
committed
use new instance of neighbour info object when removing neighbour
1 parent 2d5016b commit c49ecc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/simple_repeater/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ class MyMesh : public mesh::Mesh, public CommonCLICallbacks {
724724
for (int i = 0; i < MAX_NEIGHBOURS; i++) {
725725
NeighbourInfo* neighbour = &neighbours[i];
726726
if(memcmp(neighbour->id.pub_key, pubkey, key_len) == 0){
727-
neighbours[i] = {}; // clear neighbour entry
727+
neighbours[i] = NeighbourInfo(); // clear neighbour entry
728728
}
729729
}
730730
#endif

0 commit comments

Comments
 (0)