⚡ Removes msgpack and json build flags
This commit is contained in:
@@ -1,3 +1 @@
|
||||
PUBLIC_VITE_USE_HOST_NAME=true
|
||||
PUBLIC_USE_JSON=true
|
||||
PUBLIC_USE_MSGPACK=true
|
||||
PUBLIC_VITE_USE_HOST_NAME=true
|
||||
@@ -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,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
|
||||
|
||||
Reference in New Issue
Block a user