fix MESHTASTIC_EXCLUDE_I2C compile errors

This commit is contained in:
mverch67
2025-07-17 12:40:02 +02:00
parent cd170fb011
commit 5033fd1f9f
2 changed files with 12 additions and 3 deletions

View File

@@ -162,7 +162,7 @@ void setupModules()
#endif
// Example: Put your module here
// new ReplyModule();
#if (HAS_BUTTON || ARCH_PORTDUINO) && !MESHTASTIC_EXCLUDE_INPUTBROKER
#if (HAS_BUTTON || ARCH_PORTDUINO) && !MESHTASTIC_EXCLUDE_INPUTBROKER && !MESHTASTIC_EXCLUDE_I2C
if (config.display.displaymode != meshtastic_Config_DisplayConfig_DisplayMode_COLOR) {
rotaryEncoderInterruptImpl1 = new RotaryEncoderInterruptImpl1();