Add some returns for functions to prevent warnings

This should address #5
This commit is contained in:
Scott Baker 2019-08-13 08:18:16 -07:00
parent 964a807d9a
commit ca6c74bf17

View File

@ -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;
}