Commit 8c8966c0 authored by Eric Duminil's avatar Eric Duminil
Browse files

endif #ifdef -> #elif

parent ab83b511
...@@ -45,9 +45,7 @@ namespace csv_writer { ...@@ -45,9 +45,7 @@ namespace csv_writer {
} }
} }
} }
#endif #elif defined(ESP32)
#if defined(ESP32)
/** /**
* SPECIFIC FUNCTIONS FOR SPIFFS * SPECIFIC FUNCTIONS FOR SPIFFS
*/ */
......
...@@ -29,8 +29,7 @@ namespace web_server { ...@@ -29,8 +29,7 @@ namespace web_server {
#if defined(ESP8266) #if defined(ESP8266)
ESP8266WebServer http(80); // Create a webserver object that listens for HTTP request on port 80 ESP8266WebServer http(80); // Create a webserver object that listens for HTTP request on port 80
#endif #elif defined(ESP32)
#if defined(ESP32)
WebServer http(80); WebServer http(80);
#endif #endif
......
...@@ -2,8 +2,7 @@ ...@@ -2,8 +2,7 @@
#define WEB_SERVER_H_ #define WEB_SERVER_H_
#if defined(ESP8266) #if defined(ESP8266)
# include <ESP8266WebServer.h> # include <ESP8266WebServer.h>
#endif #elif defined(ESP32)
#if defined(ESP32)
# include <WebServer.h> # include <WebServer.h>
#endif #endif
......
...@@ -30,8 +30,7 @@ void WiFiConnect(const String &hostname) { ...@@ -30,8 +30,7 @@ void WiFiConnect(const String &hostname) {
WiFi.mode(WIFI_STA); // Set ESP8266 to be a WiFi-client only WiFi.mode(WIFI_STA); // Set ESP8266 to be a WiFi-client only
#if defined(ESP8266) #if defined(ESP8266)
WiFi.hostname(hostname); WiFi.hostname(hostname);
#endif #elif defined(ESP32)
#if defined(ESP32)
WiFi.setHostname(hostname.c_str()); WiFi.setHostname(hostname.c_str());
#endif #endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment