Skip to content

Commit 15f4da7

Browse files
committed
Bodge to allow things to compile without the dependencies
1 parent 09a982e commit 15f4da7

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

libraries/WebServer/examples/HttpAuthOneTimePassword/HttpAuthOneTimePassword.ino

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#if 1
2+
// bodge to get this example to compile in the default install.
3+
void setup() {};
4+
void loop() {};
5+
#else
16
#include <WiFi.h>
27
#include <ESPmDNS.h>
38
#include <ArduinoOTA.h>
@@ -218,4 +223,5 @@ void loop() {
218223
219224
delete otp;
220225
}
221-
}
226+
}
227+
#endif

libraries/WebServer/examples/HttpAuthOneTimePasswordNaive/HttpAuthOneTimePasswordNaive.ino

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#if 1
2+
// bodge to get this example to compile in the default install.
3+
void setup() {};
4+
void loop() {};
5+
#else
16
#include <WiFi.h>
27
#include <ESPmDNS.h>
38
#include <ArduinoOTA.h>
@@ -129,3 +134,4 @@ void loop() {
129134
Serial.println();
130135
delete otp;
131136
}
137+
#endif

0 commit comments

Comments
 (0)