Removes msgpack and json build flags

This commit is contained in:
Rune Harlyk
2026-01-03 13:20:40 +01:00
committed by nikguin04
parent 306e7488e0
commit 8b12d4008e
3 changed files with 3 additions and 23 deletions
+1 -3
View File
@@ -1,3 +1 @@
PUBLIC_VITE_USE_HOST_NAME=true
PUBLIC_USE_JSON=true
PUBLIC_USE_MSGPACK=true
PUBLIC_VITE_USE_HOST_NAME=true
+1 -4
View File
@@ -2,7 +2,4 @@
build_flags =
-D BUILD_TARGET=\"$PIOENV\"
-D APPLICATION_CORE=0
-D EMBED_WEBAPP=1
-D USE_MSGPACK=1 ; Use either msgpack or json
-D USE_JSON=0 ; Use either msgpack or json
-D EMBED_WEBAPP=1
+1 -16
View File
@@ -1,5 +1,4 @@
#ifndef Features_h
#define Features_h
#pragma once
#include <WiFi.h>
#include <ArduinoJson.h>
@@ -53,18 +52,6 @@
#define USE_MDNS 1
#endif
// ESP32 MSGPACK on by default
#ifndef USE_MSGPACK
#define USE_MSGPACK 1
#endif
// ESP32 JSON off by default
#ifndef USE_JSON
#define USE_JSON 0
#endif
static_assert(!(USE_JSON == 1 && USE_MSGPACK == 1), "Cannot set both USE_JSON and USE_MSGPACK to 1 simultaneously");
#if defined(SPOTMICRO_ESP32) && defined(SPOTMICRO_ESP32_MINI) && defined(SPOTMICRO_YERTLE)
#error "Only one kinematics variant must be defined"
#endif
@@ -94,5 +81,3 @@ void features_request(socket_message_FeaturesDataRequest& fd_req, socket_message
esp_err_t getFeatures(PsychicRequest *request);
} // namespace feature_service
#endif