From f272a4895da86ad2b8500e0173527765edd320a7 Mon Sep 17 00:00:00 2001 From: SRGDamia1 Date: Fri, 27 Oct 2017 12:53:02 -0400 Subject: [PATCH] Initialized to prevent compiler warning. --- src/TinyGsmClientESP8266.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TinyGsmClientESP8266.h b/src/TinyGsmClientESP8266.h index 0339cb3..d44b280 100644 --- a/src/TinyGsmClientESP8266.h +++ b/src/TinyGsmClientESP8266.h @@ -275,7 +275,7 @@ public: bool isNetworkConnected() { sendAT(GF("+CIPSTATUS")); int res1 = waitResponse(3000, GF("STATUS:")); - int res2; + int res2 = 0; if (res1 == 1) { res2 = waitResponse(GFP(GSM_ERROR), GF("2"), GF("3"), GF("4"), GF("5")); }