From bd1197971f926fc58e4e4788d6d1b04e06022f7b Mon Sep 17 00:00:00 2001 From: Phat Nguyen Date: Thu, 11 Apr 2024 06:45:36 +0700 Subject: [PATCH] Remove text before checkbox `Post to AirGradient` --- src/AgWiFiConnector.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/AgWiFiConnector.cpp b/src/AgWiFiConnector.cpp index 30d7f184..1800c710 100644 --- a/src/AgWiFiConnector.cpp +++ b/src/AgWiFiConnector.cpp @@ -62,10 +62,9 @@ bool WifiConnector::connect(void) { #endif WIFI()->setConfigPortalTimeout(WIFI_CONNECT_COUNTDOWN_MAX); - WiFiManagerParameter lineBreak("

Check to enabled post data to AirGradient cloud

"); - WIFI()->addParameter(&lineBreak); WiFiManagerParameter postToAg("chbPostToAg", "Post To AirGradient", "T", 2, "type=\"checkbox\" ", WFM_LABEL_AFTER); WIFI()->addParameter(&postToAg); + WIFI()->autoConnect(ssid.c_str(), WIFI_HOTSPOT_PASSWORD_DEFAULT); #ifdef ESP32