From 908d6771c27cf5ed83589d151cf88bbd0f72313c Mon Sep 17 00:00:00 2001 From: Sven Steckmann Date: Thu, 17 Oct 2019 13:56:53 +0200 Subject: [PATCH] Remove unused rst compiler warning. --- src/AutoConnect.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/AutoConnect.cpp b/src/AutoConnect.cpp index f0f0923..e5296f9 100644 --- a/src/AutoConnect.cpp +++ b/src/AutoConnect.cpp @@ -1054,8 +1054,7 @@ void AutoConnect::_setReconnect(const AC_STARECONNECT_t order) { if (order == AC_RECONNECT_SET) { _disconnectEventId = WiFi.onEvent([](WiFiEvent_t e, WiFiEventInfo_t info) { AC_DBG("STA lost connection:%d\n", info.disconnected.reason); - bool rst = WiFi.reconnect(); - AC_DBG("STA connection %s\n", rst ? "restored" : "failed"); + AC_DBG("STA connection %s\n", WiFi.reconnect() ? "restored" : "failed"); }, WiFiEvent_t::SYSTEM_EVENT_AP_STADISCONNECTED); AC_DBG("Event<%d> handler registered\n", static_cast(WiFiEvent_t::SYSTEM_EVENT_AP_STADISCONNECTED)); }