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; }