Pins: Separate actual pin h/w config from PIN_LoadFromFlash into new fn PIN_Setup(), so that we can load the pin config without setting it as active.

new variable g_enable_pins - if zero, no h/w config can be done.
new static var mqtt_initialised - set in mqtt_init, used to prevent mqtt__RunEverySecond if mqtt not initialised.
user_main.c - don't enable many functions if in AP mode.
This commit is contained in:
btsimonh
2022-04-13 08:38:05 +01:00
parent 26ae84cd83
commit 9686d52861
5 changed files with 243 additions and 211 deletions

View File

@ -653,7 +653,7 @@ int http_fn_flash_read_tool(http_request_t *request) {
poststr(request,"<label for=\"offset\">offset:</label><br>\
<input type=\"number\" id=\"offset\" name=\"offset\"");
hprintf128(request," value=\"%i\"><br>",ofs);
poststr(request,"<label for=\"lenght\">lenght:</label><br>\
poststr(request,"<label for=\"len\">length:</label><br>\
<input type=\"number\" id=\"len\" name=\"len\" ");
hprintf128(request,"value=\"%i\">",len);
poststr(request,"<br><br>\