Fix Neighborinfo crash

neighbors object wasn't initialized when module disabled, this
initializes it to a safe, empty object.
This commit is contained in:
Jonathan Bennett
2023-09-04 18:15:27 -05:00
parent e943fffe8c
commit 97f0c734e0
+1
View File
@@ -99,6 +99,7 @@ NeighborInfoModule::NeighborInfoModule()
setIntervalFromNow(35 * 1000);
} else {
LOG_DEBUG("NeighborInfoModule is disabled\n");
neighborState = meshtastic_NeighborInfo_init_zero;
disable();
}
}