mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-25 09:42:35 +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:
parent
e943fffe8c
commit
97f0c734e0
@ -99,6 +99,7 @@ NeighborInfoModule::NeighborInfoModule()
|
||||
setIntervalFromNow(35 * 1000);
|
||||
} else {
|
||||
LOG_DEBUG("NeighborInfoModule is disabled\n");
|
||||
neighborState = meshtastic_NeighborInfo_init_zero;
|
||||
disable();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user