From 4c714d4abdd8c747c0df5360bf3619903aa34eb6 Mon Sep 17 00:00:00 2001 From: Nicolas Mailloux Date: Wed, 14 Jul 2021 18:27:39 -0400 Subject: [PATCH] Wi-Fi: Correct loop in connectToNetwork function --- functions.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functions.h b/functions.h index 7fb73fd..7d4a834 100644 --- a/functions.h +++ b/functions.h @@ -464,10 +464,12 @@ namespace { if(QFile::exists("/run/wifi_connected_successfully")) { if(checkconfig("/run/wifi_connected_successfully") == true) { QFile::remove("/run/wifi_connected_successfully"); + connectionSuccessful = 1; return true; } else { QFile::remove("/run/wifi_connected_successfully"); + connectionSuccessful = 0; return false; } }