🔥 Removes unused feature flags

This commit is contained in:
Rune Harlyk
2025-09-14 21:19:29 +02:00
committed by Rune Harlyk
parent 2a57d1ecc3
commit 0f992b26e9
3 changed files with 0 additions and 26 deletions
-3
View File
@@ -6,9 +6,6 @@ build_flags =
; -D SPOTMICRO_YERTLE
; Firmware flags
-D USE_SLEEP=1
-D USE_UPLOAD_FIRMWARE=0
-D USE_DOWNLOAD_FIRMWARE=0
-D USE_MOTION=1
-D USE_MDNS=1
-20
View File
@@ -7,21 +7,6 @@
#define FT_ENABLED(feature) feature
// upload firmware feature off by default
#ifndef USE_UPLOAD_FIRMWARE
#define USE_UPLOAD_FIRMWARE 0
#endif
// download firmware feature off by default
#ifndef USE_DOWNLOAD_FIRMWARE
#define USE_DOWNLOAD_FIRMWARE 0
#endif
// ESP32 sleep states off by default
#ifndef USE_SLEEP
#define USE_SLEEP 0
#endif
// ESP32 camera off by default
#ifndef USE_CAMERA
#define USE_CAMERA 0
@@ -57,11 +42,6 @@
#define USE_PCA9685 1
#endif
// ESP32 GPS off by default
#ifndef USE_GPS
#define USE_GPS 0
#endif
// ESP32 MDNS on by default
#ifndef USE_MDNS
#define USE_MDNS 1
-3
View File
@@ -10,7 +10,6 @@ void printFeatureConfiguration() {
// Core features
ESP_LOGI("Features", "USE_UPLOAD_FIRMWARE: %s", USE_UPLOAD_FIRMWARE ? "enabled" : "disabled");
ESP_LOGI("Features", "USE_DOWNLOAD_FIRMWARE: %s", USE_DOWNLOAD_FIRMWARE ? "enabled" : "disabled");
ESP_LOGI("Features", "USE_SLEEP: %s", USE_SLEEP ? "enabled" : "disabled");
ESP_LOGI("Features", "USE_CAMERA: %s", USE_CAMERA ? "enabled" : "disabled");
ESP_LOGI("Features", "USE_MOTION: %s", USE_MOTION ? "enabled" : "disabled");
@@ -20,7 +19,6 @@ void printFeatureConfiguration() {
ESP_LOGI("Features", "USE_HMC5883: %s", USE_HMC5883 ? "enabled" : "disabled");
ESP_LOGI("Features", "USE_BMP180: %s", USE_BMP180 ? "enabled" : "disabled");
ESP_LOGI("Features", "USE_USS: %s", USE_USS ? "enabled" : "disabled");
ESP_LOGI("Features", "USE_GPS: %s", USE_GPS ? "enabled" : "disabled");
// Peripherals
ESP_LOGI("Features", "USE_PCA9685: %s", USE_PCA9685 ? "enabled" : "disabled");
@@ -37,7 +35,6 @@ void printFeatureConfiguration() {
void features(JsonObject &root) {
root["upload_firmware"] = USE_UPLOAD_FIRMWARE ? true : false;
root["download_firmware"] = USE_DOWNLOAD_FIRMWARE ? true : false;
root["sleep"] = USE_SLEEP ? true : false;
root["camera"] = USE_CAMERA ? true : false;
root["imu"] = (USE_MPU6050 || USE_BNO055) ? true : false;
root["mag"] = (USE_HMC5883 || USE_BNO055) ? true : false;