Fix Linux Input enable logic (#10093)
This commit is contained in:
co-authored by
GitHub
parent
98963218ad
commit
2dd9c5eef2
@@ -382,11 +382,13 @@ void InputBroker::Init()
|
|||||||
}
|
}
|
||||||
#endif // HAS_BUTTON
|
#endif // HAS_BUTTON
|
||||||
#if ARCH_PORTDUINO
|
#if ARCH_PORTDUINO
|
||||||
if (config.display.displaymode != meshtastic_Config_DisplayConfig_DisplayMode_COLOR && portduino_config.i2cdev != "") {
|
if (config.display.displaymode != meshtastic_Config_DisplayConfig_DisplayMode_COLOR) {
|
||||||
seesawRotary = new SeesawRotary("SeesawRotary");
|
if (portduino_config.i2cdev != "") {
|
||||||
if (!seesawRotary->init()) {
|
seesawRotary = new SeesawRotary("SeesawRotary");
|
||||||
delete seesawRotary;
|
if (!seesawRotary->init()) {
|
||||||
seesawRotary = nullptr;
|
delete seesawRotary;
|
||||||
|
seesawRotary = nullptr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
aLinuxInputImpl = new LinuxInputImpl();
|
aLinuxInputImpl = new LinuxInputImpl();
|
||||||
aLinuxInputImpl->init();
|
aLinuxInputImpl->init();
|
||||||
|
|||||||
Reference in New Issue
Block a user