mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-21 10:12:50 +00:00
Fix Neighborinfo crash
neighbors object wasn't initialized when module disabled, this initializes it to a safe, empty object.
This commit is contained in:
@@ -99,6 +99,7 @@ NeighborInfoModule::NeighborInfoModule()
|
||||
setIntervalFromNow(35 * 1000);
|
||||
} else {
|
||||
LOG_DEBUG("NeighborInfoModule is disabled\n");
|
||||
neighborState = meshtastic_NeighborInfo_init_zero;
|
||||
disable();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user