mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-08 06:02:05 +00:00
Gate more modules behind config.display.displaymode
This commit is contained in:
parent
3fe44755d0
commit
021f872507
@ -64,7 +64,9 @@ static int32_t reconnectETH()
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if !MESHTASTIC_EXCLUDE_SOCKETAPI
|
#if !MESHTASTIC_EXCLUDE_SOCKETAPI
|
||||||
initApiServer();
|
if (config.display.displaymode != meshtastic_Config_DisplayConfig_DisplayMode_COLOR) {
|
||||||
|
initApiServer();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ethStartupComplete = true;
|
ethStartupComplete = true;
|
||||||
|
@ -124,10 +124,14 @@ static void onNetworkConnected()
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(ARCH_ESP32) && !MESHTASTIC_EXCLUDE_WEBSERVER
|
#if defined(ARCH_ESP32) && !MESHTASTIC_EXCLUDE_WEBSERVER
|
||||||
initWebServer();
|
if (config.display.displaymode != meshtastic_Config_DisplayConfig_DisplayMode_COLOR) {
|
||||||
|
initWebServer();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
#if !MESHTASTIC_EXCLUDE_SOCKETAPI
|
#if !MESHTASTIC_EXCLUDE_SOCKETAPI
|
||||||
initApiServer();
|
if (config.display.displaymode != meshtastic_Config_DisplayConfig_DisplayMode_COLOR) {
|
||||||
|
initApiServer();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
APStartupComplete = true;
|
APStartupComplete = true;
|
||||||
}
|
}
|
||||||
|
@ -234,7 +234,9 @@ void setupModules()
|
|||||||
#if (defined(ARCH_ESP32) || defined(ARCH_NRF52) || defined(ARCH_RP2040)) && !defined(CONFIG_IDF_TARGET_ESP32S2) && \
|
#if (defined(ARCH_ESP32) || defined(ARCH_NRF52) || defined(ARCH_RP2040)) && !defined(CONFIG_IDF_TARGET_ESP32S2) && \
|
||||||
!defined(CONFIG_IDF_TARGET_ESP32C3)
|
!defined(CONFIG_IDF_TARGET_ESP32C3)
|
||||||
#if !MESHTASTIC_EXCLUDE_SERIAL
|
#if !MESHTASTIC_EXCLUDE_SERIAL
|
||||||
new SerialModule();
|
if (config.display.displaymode != meshtastic_Config_DisplayConfig_DisplayMode_COLOR) {
|
||||||
|
new SerialModule();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#ifdef ARCH_ESP32
|
#ifdef ARCH_ESP32
|
||||||
|
@ -36,11 +36,6 @@ upload_speed = 460800
|
|||||||
|
|
||||||
build_flags =
|
build_flags =
|
||||||
${env:seeed-sensecap-indicator.build_flags}
|
${env:seeed-sensecap-indicator.build_flags}
|
||||||
-D MESHTASTIC_EXCLUDE_CANNEDMESSAGES=1
|
|
||||||
-D MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR=1
|
|
||||||
-D MESHTASTIC_EXCLUDE_WEBSERVER=1
|
|
||||||
-D MESHTASTIC_EXCLUDE_SERIAL=1
|
|
||||||
-D MESHTASTIC_EXCLUDE_SOCKETAPI=1
|
|
||||||
-D INPUTDRIVER_BUTTON_TYPE=38
|
-D INPUTDRIVER_BUTTON_TYPE=38
|
||||||
-D HAS_TELEMETRY=0
|
-D HAS_TELEMETRY=0
|
||||||
-D CONFIG_DISABLE_HAL_LOCKS=1
|
-D CONFIG_DISABLE_HAL_LOCKS=1
|
||||||
|
@ -25,9 +25,6 @@ extends = env:t-deck
|
|||||||
build_flags =
|
build_flags =
|
||||||
${env:t-deck.build_flags}
|
${env:t-deck.build_flags}
|
||||||
-D CONFIG_DISABLE_HAL_LOCKS=1 ; "feels" to be a bit more stable without locks
|
-D CONFIG_DISABLE_HAL_LOCKS=1 ; "feels" to be a bit more stable without locks
|
||||||
-D MESHTASTIC_EXCLUDE_WEBSERVER=1
|
|
||||||
-D MESHTASTIC_EXCLUDE_SERIAL=1
|
|
||||||
-D MESHTASTIC_EXCLUDE_SOCKETAPI=1
|
|
||||||
-D INPUTDRIVER_I2C_KBD_TYPE=0x55
|
-D INPUTDRIVER_I2C_KBD_TYPE=0x55
|
||||||
-D INPUTDRIVER_ENCODER_TYPE=3
|
-D INPUTDRIVER_ENCODER_TYPE=3
|
||||||
-D INPUTDRIVER_ENCODER_LEFT=1
|
-D INPUTDRIVER_ENCODER_LEFT=1
|
||||||
|
Loading…
Reference in New Issue
Block a user