Add I2C device check for seesaw device on native (#8927)

It turns out the logic here was attempting to access i2c without being told to do so. Not good, especially on desktops.
This commit is contained in:
Jonathan Bennett
2025-12-10 18:01:52 -06:00
committed by GitHub
parent 83b603827c
commit fba92229a6

View File

@@ -217,7 +217,7 @@ void setupModules()
}
#endif // HAS_BUTTON
#if ARCH_PORTDUINO
if (config.display.displaymode != meshtastic_Config_DisplayConfig_DisplayMode_COLOR) {
if (config.display.displaymode != meshtastic_Config_DisplayConfig_DisplayMode_COLOR && portduino_config.i2cdev != "") {
seesawRotary = new SeesawRotary("SeesawRotary");
if (!seesawRotary->init()) {
delete seesawRotary;