🔥 Removes unused feature flags
This commit is contained in:
@@ -6,9 +6,6 @@ build_flags =
|
|||||||
; -D SPOTMICRO_YERTLE
|
; -D SPOTMICRO_YERTLE
|
||||||
|
|
||||||
; Firmware flags
|
; Firmware flags
|
||||||
-D USE_SLEEP=1
|
|
||||||
-D USE_UPLOAD_FIRMWARE=0
|
|
||||||
-D USE_DOWNLOAD_FIRMWARE=0
|
|
||||||
-D USE_MOTION=1
|
-D USE_MOTION=1
|
||||||
-D USE_MDNS=1
|
-D USE_MDNS=1
|
||||||
|
|
||||||
|
|||||||
@@ -7,21 +7,6 @@
|
|||||||
|
|
||||||
#define FT_ENABLED(feature) feature
|
#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
|
// ESP32 camera off by default
|
||||||
#ifndef USE_CAMERA
|
#ifndef USE_CAMERA
|
||||||
#define USE_CAMERA 0
|
#define USE_CAMERA 0
|
||||||
@@ -57,11 +42,6 @@
|
|||||||
#define USE_PCA9685 1
|
#define USE_PCA9685 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// ESP32 GPS off by default
|
|
||||||
#ifndef USE_GPS
|
|
||||||
#define USE_GPS 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// ESP32 MDNS on by default
|
// ESP32 MDNS on by default
|
||||||
#ifndef USE_MDNS
|
#ifndef USE_MDNS
|
||||||
#define USE_MDNS 1
|
#define USE_MDNS 1
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ void printFeatureConfiguration() {
|
|||||||
// Core features
|
// Core features
|
||||||
ESP_LOGI("Features", "USE_UPLOAD_FIRMWARE: %s", USE_UPLOAD_FIRMWARE ? "enabled" : "disabled");
|
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_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_CAMERA: %s", USE_CAMERA ? "enabled" : "disabled");
|
||||||
ESP_LOGI("Features", "USE_MOTION: %s", USE_MOTION ? "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_HMC5883: %s", USE_HMC5883 ? "enabled" : "disabled");
|
||||||
ESP_LOGI("Features", "USE_BMP180: %s", USE_BMP180 ? "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_USS: %s", USE_USS ? "enabled" : "disabled");
|
||||||
ESP_LOGI("Features", "USE_GPS: %s", USE_GPS ? "enabled" : "disabled");
|
|
||||||
|
|
||||||
// Peripherals
|
// Peripherals
|
||||||
ESP_LOGI("Features", "USE_PCA9685: %s", USE_PCA9685 ? "enabled" : "disabled");
|
ESP_LOGI("Features", "USE_PCA9685: %s", USE_PCA9685 ? "enabled" : "disabled");
|
||||||
@@ -37,7 +35,6 @@ void printFeatureConfiguration() {
|
|||||||
void features(JsonObject &root) {
|
void features(JsonObject &root) {
|
||||||
root["upload_firmware"] = USE_UPLOAD_FIRMWARE ? true : false;
|
root["upload_firmware"] = USE_UPLOAD_FIRMWARE ? true : false;
|
||||||
root["download_firmware"] = USE_DOWNLOAD_FIRMWARE ? true : false;
|
root["download_firmware"] = USE_DOWNLOAD_FIRMWARE ? true : false;
|
||||||
root["sleep"] = USE_SLEEP ? true : false;
|
|
||||||
root["camera"] = USE_CAMERA ? true : false;
|
root["camera"] = USE_CAMERA ? true : false;
|
||||||
root["imu"] = (USE_MPU6050 || USE_BNO055) ? true : false;
|
root["imu"] = (USE_MPU6050 || USE_BNO055) ? true : false;
|
||||||
root["mag"] = (USE_HMC5883 || USE_BNO055) ? true : false;
|
root["mag"] = (USE_HMC5883 || USE_BNO055) ? true : false;
|
||||||
|
|||||||
Reference in New Issue
Block a user