Skip to content

Commit 3e2f8ae

Browse files
committed
fix update menu bug
1 parent 0ec7a58 commit 3e2f8ae

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

strings_en.h

+5-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ const char * const HTTP_PORTAL_MENU[] PROGMEM = {
2424
"<form action='/info' method='get'><button>Info</button></form><br/>\n", // MENU_INFO
2525
"<form action='/param' method='get'><button>Setup</button></form><br/>\n",//MENU_PARAM
2626
"<form action='/close' method='get'><button>Close</button></form><br/>\n", // MENU_CLOSE
27-
"<form action='/update' method='get'><button>Update</button></form><br/>\n",// MENU_UPDATE
2827
"<form action='/restart' method='get'><button>Restart</button></form><br/>\n",// MENU_RESTART
2928
"<form action='/exit' method='get'><button>Exit</button></form><br/>\n", // MENU_EXIT
3029
"<form action='/erase' method='get'><button class='D'>Erase</button></form><br/>\n", // MENU_ERASE
30+
"<form action='/update' method='get'><button>Update</button></form><br/>\n",// MENU_UPDATE
3131
"<hr><br/>" // MENU_SEP
3232
};
3333

@@ -116,7 +116,7 @@ const char HTTP_HELP[] PROGMEM =
116116
"</table>"
117117
"<p/>More information about WiFiManager at <a href='https://github.com/tzapu/WiFiManager'>https://github.com/tzapu/WiFiManager</a>.";
118118

119-
const char HTTP_UPDATE[] PROGMEM = "Upload New Firmware<br/><form method='POST' action='u' enctype='multipart/form-data' onchange=\"(function(el){document.getElementById('uploadbin').style.display = el.value=='' ? 'none' : 'initial';})(this)\"><input type='file' name='update' accept='.bin,application/octet-stream'><button id='uploadbin' type='submit' class='h D'>Update</button></form><small><a href='http://192.168.4.1' target='_blank'>* May not function inside captive portal, Open in browser http://192.168.4.1</a><small>";
119+
const char HTTP_UPDATE[] PROGMEM = "Upload New Firmware<br/><form method='POST' action='u' enctype='multipart/form-data' onchange=\"(function(el){document.getElementById('uploadbin').style.display = el.value=='' ? 'none' : 'initial';})(this)\"><input type='file' name='update' accept='.bin,application/octet-stream'><button id='uploadbin' type='submit' class='h D'>Update</button></form><small><a href='http://192.168.4.1/update' target='_blank'>* May not function inside captive portal, Open in browser http://192.168.4.1</a><small>";
120120
const char HTTP_UPDATE_FAIL[] PROGMEM = "<div class='msg D'><strong>Update Failed!</strong><Br/>Reboot device and try again</div>";
121121
const char HTTP_UPDATE_OK[] PROGMEM = "<div class='msg P'><strong>Update OK!</strong> Device Rebooting now...</div>";
122122

@@ -221,8 +221,8 @@ const char D_HR[] PROGMEM = "--------------------";
221221
// -----------------------------------------------------------------------------------------------
222222
// DO NOT EDIT BELOW THIS LINE
223223

224-
const uint8_t _nummenutokens = 9;
225-
const char * const _menutokens[9] PROGMEM = {
224+
const uint8_t _nummenutokens = 10;
225+
const char * const _menutokens[10] PROGMEM = {
226226
"wifi",
227227
"wifinoscan",
228228
"info",
@@ -231,6 +231,7 @@ const char * const _menutokens[9] PROGMEM = {
231231
"restart",
232232
"exit",
233233
"erase",
234+
"update",
234235
"sep"
235236
};
236237

0 commit comments

Comments
 (0)