kopia lustrzana https://github.com/meshtastic/firmware
fix #2460 - we only really need the router object after nodedb init, so lets move it there.
rodzic
e360c62480
commit
313860c8a4
|
@ -234,8 +234,6 @@ void setup()
|
||||||
|
|
||||||
fsInit();
|
fsInit();
|
||||||
|
|
||||||
router = new ReliableRouter();
|
|
||||||
|
|
||||||
#ifdef I2C_SDA1
|
#ifdef I2C_SDA1
|
||||||
Wire1.begin(I2C_SDA1, I2C_SCL1);
|
Wire1.begin(I2C_SDA1, I2C_SCL1);
|
||||||
#endif
|
#endif
|
||||||
|
@ -413,6 +411,8 @@ void setup()
|
||||||
// If we're taking on the repeater role, use flood router
|
// If we're taking on the repeater role, use flood router
|
||||||
if (config.device.role == meshtastic_Config_DeviceConfig_Role_REPEATER)
|
if (config.device.role == meshtastic_Config_DeviceConfig_Role_REPEATER)
|
||||||
router = new FloodingRouter();
|
router = new FloodingRouter();
|
||||||
|
else
|
||||||
|
router = new ReliableRouter();
|
||||||
|
|
||||||
#if HAS_BUTTON
|
#if HAS_BUTTON
|
||||||
// Buttons. Moved here cause we need NodeDB to be initialized
|
// Buttons. Moved here cause we need NodeDB to be initialized
|
||||||
|
|
Ładowanie…
Reference in New Issue