kopia lustrzana https://github.com/meshtastic/firmware
Fix Neighborinfo crash
neighbors object wasn't initialized when module disabled, this initializes it to a safe, empty object.pull/2765/head^2
rodzic
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();
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue