From 54eefacd00d51bbafc7e9135d74438a42284a52b Mon Sep 17 00:00:00 2001 From: Eiren Rain Date: Fri, 20 Dec 2024 17:55:13 +0100 Subject: [PATCH] Fix include and C++ standards --- src/sensors/SensorManager.h | 1 + src/serial/serialcommands.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sensors/SensorManager.h b/src/sensors/SensorManager.h index 8698d38a..c2ebdb5c 100644 --- a/src/sensors/SensorManager.h +++ b/src/sensors/SensorManager.h @@ -34,6 +34,7 @@ #include #include +#include #include "EmptySensor.h" #include "ErroneousSensor.h" diff --git a/src/serial/serialcommands.cpp b/src/serial/serialcommands.cpp index 4466e5c2..a8da5366 100644 --- a/src/serial/serialcommands.cpp +++ b/src/serial/serialcommands.cpp @@ -173,7 +173,7 @@ void printState() { } #if ESP32 -char* getEncryptionTypeName(wifi_auth_mode_t type) { +String getEncryptionTypeName(wifi_auth_mode_t type) { switch (type) { case WIFI_AUTH_OPEN: return "OPEN"; @@ -197,7 +197,7 @@ char* getEncryptionTypeName(wifi_auth_mode_t type) { return "WPA3_ENT_192"; } #else -char* getEncryptionTypeName(uint8_t type) { +String getEncryptionTypeName(uint8_t type) { switch (type) { case ENC_TYPE_NONE: return "OPEN";