From 6f19141a49d85b22ee81ff07a17d91649f6e4668 Mon Sep 17 00:00:00 2001 From: Gregg Date: Sat, 4 Nov 2023 13:22:12 -0500 Subject: [PATCH] Update src.ino --- src/src.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/src.ino b/src/src.ino index a559363..eecb04f 100644 --- a/src/src.ino +++ b/src/src.ino @@ -74,7 +74,8 @@ void setup() { // homeSpan.enableOTA(); homeSpan.setWifiCallback(wifiCB); - homeSpan.setWifiCallbackAll(wifiCB_ALL).setVerboseWifiReconnect(true).setRebootCallback(rebootCB); + homeSpan.setWifiCallbackAll(wifiCB_ALL).setVerboseWifiReconnect(true); + homeSpan.setRebootCallback( [](uint8_t c) {if(c==3) homeSpan.processSerialCommand("X");} ); new SpanUserCommand('D', " - disconnect WiFi", [](const char *buf){WiFi.disconnect();});