⚡ Removes msgpack and json build flags
This commit is contained in:
@@ -1,3 +1 @@
|
|||||||
PUBLIC_VITE_USE_HOST_NAME=true
|
PUBLIC_VITE_USE_HOST_NAME=true
|
||||||
PUBLIC_USE_JSON=true
|
|
||||||
PUBLIC_USE_MSGPACK=true
|
|
||||||
@@ -3,6 +3,3 @@ build_flags =
|
|||||||
-D BUILD_TARGET=\"$PIOENV\"
|
-D BUILD_TARGET=\"$PIOENV\"
|
||||||
-D APPLICATION_CORE=0
|
-D APPLICATION_CORE=0
|
||||||
-D EMBED_WEBAPP=1
|
-D EMBED_WEBAPP=1
|
||||||
|
|
||||||
-D USE_MSGPACK=1 ; Use either msgpack or json
|
|
||||||
-D USE_JSON=0 ; Use either msgpack or json
|
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
#ifndef Features_h
|
#pragma once
|
||||||
#define Features_h
|
|
||||||
|
|
||||||
#include <WiFi.h>
|
#include <WiFi.h>
|
||||||
#include <ArduinoJson.h>
|
#include <ArduinoJson.h>
|
||||||
@@ -53,18 +52,6 @@
|
|||||||
#define USE_MDNS 1
|
#define USE_MDNS 1
|
||||||
#endif
|
#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)
|
#if defined(SPOTMICRO_ESP32) && defined(SPOTMICRO_ESP32_MINI) && defined(SPOTMICRO_YERTLE)
|
||||||
#error "Only one kinematics variant must be defined"
|
#error "Only one kinematics variant must be defined"
|
||||||
#endif
|
#endif
|
||||||
@@ -94,5 +81,3 @@ void features_request(socket_message_FeaturesDataRequest& fd_req, socket_message
|
|||||||
esp_err_t getFeatures(PsychicRequest *request);
|
esp_err_t getFeatures(PsychicRequest *request);
|
||||||
|
|
||||||
} // namespace feature_service
|
} // namespace feature_service
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|||||||
Reference in New Issue
Block a user