From 46e0fcdc548c52e6bdddcf85b9a6e24f2ef35d24 Mon Sep 17 00:00:00 2001 From: Asbelos Date: Sat, 13 Feb 2021 16:15:46 +0000 Subject: [PATCH] fix wifi setup issue --- WifiInterface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WifiInterface.cpp b/WifiInterface.cpp index 5b3a062..673d59c 100644 --- a/WifiInterface.cpp +++ b/WifiInterface.cpp @@ -251,8 +251,8 @@ wifiSerialState WifiInterface::setup2(const FSH* SSid, const FSH* password, } char macTail[]={macAddress[9],macAddress[10],macAddress[12],macAddress[13],macAddress[15],macAddress[16],'\0'}; - while (wifiStream->available()) StringFormatter::printEscape( wifiStream->read()); /// THIS IS A DIAG IN DISGUISE - + checkForOK(1000, OK_SEARCH, true, false); // suck up remainder of AT+CIFSR + i=0; do { if (strncmp_P(yourNetwork, (const char*)password, 13) == 0) {