From 5c0736284b547c227c65decb07394f325cd546c5 Mon Sep 17 00:00:00 2001 From: Sara Damiano Date: Tue, 25 Sep 2018 18:03:47 -0400 Subject: [PATCH] Fixed ublox name, again. --- src/TinyGsmClientUBLOX.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TinyGsmClientUBLOX.h b/src/TinyGsmClientUBLOX.h index 4e610f3..10751f0 100644 --- a/src/TinyGsmClientUBLOX.h +++ b/src/TinyGsmClientUBLOX.h @@ -235,14 +235,14 @@ public: sendAT(GF("+GMM")); String res2; - if (waitResponse(1000L, res1) != 1) { + if (waitResponse(1000L, res2) != 1) { return "u-blox Cellular Modem"; } res2.replace(GSM_NL "OK" GSM_NL, ""); res2.replace(GSM_NL, " "); res2.trim(); - return res1 + res2; + return res1 + String(' ') + res2; } void setBaud(unsigned long baud) {