Skip to content

Commit

Permalink
Fix include and C++ standards
Browse files Browse the repository at this point in the history
  • Loading branch information
Eirenliel committed Dec 20, 2024
1 parent 52f78f1 commit 54eefac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/sensors/SensorManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <i2cscan.h>

#include <memory>
#include <optional>

#include "EmptySensor.h"
#include "ErroneousSensor.h"
Expand Down
4 changes: 2 additions & 2 deletions src/serial/serialcommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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";
Expand Down

0 comments on commit 54eefac

Please sign in to comment.