mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-09 06:32:06 +00:00
fix compilation errors (for targets which have no telemetry)
This commit is contained in:
parent
3e3a55a971
commit
bf21481bef
@ -62,6 +62,7 @@
|
|||||||
#include "modules/Telemetry/AirQualityTelemetry.h"
|
#include "modules/Telemetry/AirQualityTelemetry.h"
|
||||||
#include "modules/Telemetry/EnvironmentTelemetry.h"
|
#include "modules/Telemetry/EnvironmentTelemetry.h"
|
||||||
#include "modules/Telemetry/HealthTelemetry.h"
|
#include "modules/Telemetry/HealthTelemetry.h"
|
||||||
|
#include "modules/Telemetry/Sensor/TelemetrySensor.h"
|
||||||
#endif
|
#endif
|
||||||
#if HAS_TELEMETRY && !MESHTASTIC_EXCLUDE_POWER_TELEMETRY
|
#if HAS_TELEMETRY && !MESHTASTIC_EXCLUDE_POWER_TELEMETRY
|
||||||
#include "modules/Telemetry/PowerTelemetry.h"
|
#include "modules/Telemetry/PowerTelemetry.h"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#include "configuration.h"
|
#include "configuration.h"
|
||||||
|
|
||||||
#if !MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR && __has_include("Adafruit_PM25AQI.h")
|
#if HAS_TELEMETRY && !MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR && __has_include("Adafruit_PM25AQI.h")
|
||||||
|
|
||||||
#include "../mesh/generated/meshtastic/telemetry.pb.h"
|
#include "../mesh/generated/meshtastic/telemetry.pb.h"
|
||||||
#include "AirQualityTelemetry.h"
|
#include "AirQualityTelemetry.h"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#include "configuration.h"
|
#include "configuration.h"
|
||||||
|
|
||||||
#if !MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR
|
#if HAS_TELEMETRY && !MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR
|
||||||
|
|
||||||
#include "../mesh/generated/meshtastic/telemetry.pb.h"
|
#include "../mesh/generated/meshtastic/telemetry.pb.h"
|
||||||
#include "Default.h"
|
#include "Default.h"
|
||||||
@ -19,6 +19,7 @@
|
|||||||
#include <OLEDDisplayUi.h>
|
#include <OLEDDisplayUi.h>
|
||||||
|
|
||||||
#if !MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR_EXTERNAL
|
#if !MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR_EXTERNAL
|
||||||
|
|
||||||
// Sensors
|
// Sensors
|
||||||
|
|
||||||
#include "Sensor/CGRadSensSensor.h"
|
#include "Sensor/CGRadSensSensor.h"
|
||||||
|
@ -78,8 +78,8 @@ extern NullSensor ina3221Sensor;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAS_TELEMETRY && !MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR && !defined(ARCH_STM32WL)
|
#if HAS_TELEMETRY && !MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR && !defined(ARCH_STM32WL)
|
||||||
#include "modules/Telemetry/Sensor/MAX17048Sensor.h"
|
|
||||||
#if __has_include(<Adafruit_MAX1704X.h>)
|
#if __has_include(<Adafruit_MAX1704X.h>)
|
||||||
|
#include "modules/Telemetry/Sensor/MAX17048Sensor.h"
|
||||||
extern MAX17048Sensor max17048Sensor;
|
extern MAX17048Sensor max17048Sensor;
|
||||||
#else
|
#else
|
||||||
extern NullSensor max17048Sensor;
|
extern NullSensor max17048Sensor;
|
||||||
|
@ -37,7 +37,6 @@ upload_speed = 460800
|
|||||||
build_flags =
|
build_flags =
|
||||||
${env:seeed-sensecap-indicator.build_flags}
|
${env:seeed-sensecap-indicator.build_flags}
|
||||||
-D INPUTDRIVER_BUTTON_TYPE=38
|
-D INPUTDRIVER_BUTTON_TYPE=38
|
||||||
-D HAS_TELEMETRY=0
|
|
||||||
-D CONFIG_DISABLE_HAL_LOCKS=1
|
-D CONFIG_DISABLE_HAL_LOCKS=1
|
||||||
-D HAS_SCREEN=1
|
-D HAS_SCREEN=1
|
||||||
-D HAS_TFT=1
|
-D HAS_TFT=1
|
||||||
|
Loading…
Reference in New Issue
Block a user