Skip to content

Commit

Permalink
Get rid of deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lbussy committed Jan 5, 2020
1 parent 064fbbb commit bdf86bd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/execota.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ void execfw() {

ESPhttpUpdate.setLedPin(LED, LOW);
// "http://www.brewbubbles.com/firmware/firmware.bin"
t_httpUpdate_return ret = ESPhttpUpdate.update(F(FIRMWAREURL));
WiFiClient client;
t_httpUpdate_return ret = ESPhttpUpdate.update(client, F(FIRMWAREURL), "");

switch(ret) {
case HTTP_UPDATE_FAILED:
Expand Down Expand Up @@ -90,7 +91,8 @@ void execspiffs() {

ESPhttpUpdate.setLedPin(LED, LOW);
// "http://www.brewbubbles.com/firmware/spiffs.bin"
t_httpUpdate_return ret = ESPhttpUpdate.updateSpiffs(F(SPIFFSURL));
WiFiClient client;
t_httpUpdate_return ret = ESPhttpUpdate.updateSpiffs(client, F(SPIFFSURL), "");

switch(ret) {
case HTTP_UPDATE_FAILED:
Expand Down

0 comments on commit bdf86bd

Please sign in to comment.