From 75e0e6c64381e317c610a6af26b460629119b3b5 Mon Sep 17 00:00:00 2001 From: n0m1s Date: Sat, 11 Jan 2020 22:56:57 +0100 Subject: [PATCH] fix: wifi connection test --- wifi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wifi.cpp b/wifi.cpp index 6527664..584391b 100644 --- a/wifi.cpp +++ b/wifi.cpp @@ -13,7 +13,7 @@ void Wifi::keep_alive_connection() m_wifi.run(); } -void Wifi::is_connected() const +bool Wifi::is_connected() const { - return m_wifi.status() == WL_CONNECTED; + return WiFi.status() == WL_CONNECTED; }