From b5c25a6cef781f6acf2e6490433125ff2aaa9b72 Mon Sep 17 00:00:00 2001 From: Volodymyr Shymanskyy Date: Mon, 11 Sep 2017 19:40:09 +0300 Subject: [PATCH] Fix getModemInfo() --- TinyGsmClientA6.h | 2 ++ TinyGsmClientM590.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/TinyGsmClientA6.h b/TinyGsmClientA6.h index cc0eaac..756bca9 100644 --- a/TinyGsmClientA6.h +++ b/TinyGsmClientA6.h @@ -227,6 +227,8 @@ public: if (waitResponse(1000L, res) != 1) { return ""; } + res.replace(GSM_NL "OK" GSM_NL, ""); + res.replace(GSM_NL, ""); res.trim(); return res; } diff --git a/TinyGsmClientM590.h b/TinyGsmClientM590.h index 34e5d1d..c8c94ba 100644 --- a/TinyGsmClientM590.h +++ b/TinyGsmClientM590.h @@ -232,6 +232,8 @@ public: if (waitResponse(1000L, res) != 1) { return ""; } + res.replace(GSM_NL "OK" GSM_NL, ""); + res.replace(GSM_NL, ""); res.trim(); return res; }