Refactored to use BOOT (GPIO0) switch for WiFi - so obvious! Shows CFG on WiFi icon if STA+AP and portal running

This commit is contained in:
rljonesau 2019-01-14 21:35:21 +11:00
parent 95c054e19b
commit 1b74359084
2 changed files with 3 additions and 1 deletions

View file

@ -123,6 +123,7 @@ bool initWifi(int initpin,const char *failedssid, const char *failedpassword)
if(shouldBootIntoConfigPortal()) {
DebugPort.println("Manually starting web portal");
wm.startWebPortal();
isPortalAP = true;
}
return retval;

View file

@ -45,5 +45,6 @@ const uint8_t keyRight_pin = 36; // input only, no chip pullup
const uint8_t keyLeft_pin = 39; // input only, no chip pullup
const uint8_t ListenOnlyPin = 33;
const uint8_t WiFi_TriggerPin = 25;
//const uint8_t WiFi_TriggerPin = 25;
const uint8_t WiFi_TriggerPin = 0;