mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-26 01:52:48 +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);
|
setIntervalFromNow(35 * 1000);
|
||||||
} else {
|
} else {
|
||||||
LOG_DEBUG("NeighborInfoModule is disabled\n");
|
LOG_DEBUG("NeighborInfoModule is disabled\n");
|
||||||
|
neighborState = meshtastic_NeighborInfo_init_zero;
|
||||||
disable();
|
disable();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user