mirror of
https://github.com/scottchiefbaker/ESP-WebOTA.git
synced 2024-08-30 18:12:33 +00:00
Add some returns for functions to prevent warnings
This should address #5
This commit is contained in:
parent
964a807d9a
commit
ca6c74bf17
@ -67,6 +67,8 @@ int WebOTA::handle() {
|
||||
#ifdef ESP8266
|
||||
MDNS.update();
|
||||
#endif
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
long WebOTA::max_sketch_size() {
|
||||
@ -193,6 +195,8 @@ int WebOTA::add_http_routes(WebServer *server, const char *path) {
|
||||
});
|
||||
|
||||
server->begin();
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
// If the MCU is in a delay() it cannot respond to HTTP OTA requests
|
||||
@ -251,4 +255,6 @@ int init_wifi(const char *ssid, const char *password, const char *mdns_hostname)
|
||||
Serial.printf("MAC address : %s \r\n", WiFi.macAddress().c_str());
|
||||
|
||||
init_mdns(mdns_hostname);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user