Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
co2ampel2
co2-ampel
Commits
8c8966c0
Commit
8c8966c0
authored
4 years ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
endif #ifdef -> #elif
parent
ab83b511
master
Aarons-branch
dev
develop
experimental/example_for_iotwebconf
senseair_s8
v0.3.0
v0.2.3
v0.2.2
v0.2.1
v0.2.0
v0.1.0
archive/refactor/src_structure
archive/experimental/wifimanager
archive/experimental/simple
archive/experimental/save_lora_session
archive/experimental/save_config
archive/experimental/ota
archive/experimental/binary_clock
archive/experimental/autoconnect
archive/dev/debugcalib
archive/debug/loop_too_fast
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
csv_writer.cpp
+1
-3
csv_writer.cpp
web_server.cpp
+1
-2
web_server.cpp
web_server.h
+1
-2
web_server.h
wifi_util.cpp
+1
-2
wifi_util.cpp
with
4 additions
and
9 deletions
+4
-9
csv_writer.cpp
+
1
-
3
View file @
8c8966c0
...
@@ -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
*/
*/
...
...
This diff is collapsed.
Click to expand it.
web_server.cpp
+
1
-
2
View file @
8c8966c0
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
web_server.h
+
1
-
2
View file @
8c8966c0
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
wifi_util.cpp
+
1
-
2
View file @
8c8966c0
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets