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

endif #ifdef -> #elif

parent ab83b511
......@@ -45,9 +45,7 @@ namespace csv_writer {
}
}
}
#endif
#if defined(ESP32)
#elif defined(ESP32)
/**
* SPECIFIC FUNCTIONS FOR SPIFFS
*/
......
......@@ -29,8 +29,7 @@ namespace web_server {
#if defined(ESP8266)
ESP8266WebServer http(80); // Create a webserver object that listens for HTTP request on port 80
#endif
#if defined(ESP32)
#elif defined(ESP32)
WebServer http(80);
#endif
......
......@@ -2,8 +2,7 @@
#define WEB_SERVER_H_
#if defined(ESP8266)
# include <ESP8266WebServer.h>
#endif
#if defined(ESP32)
#elif defined(ESP32)
# include <WebServer.h>
#endif
......
......@@ -30,8 +30,7 @@ void WiFiConnect(const String &hostname) {
WiFi.mode(WIFI_STA); // Set ESP8266 to be a WiFi-client only
#if defined(ESP8266)
WiFi.hostname(hostname);
#endif
#if defined(ESP32)
#elif defined(ESP32)
WiFi.setHostname(hostname.c_str());
#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