Fix getModemInfo()
This commit is contained in:
		| @@ -227,6 +227,8 @@ public: | |||||||
|     if (waitResponse(1000L, res) != 1) { |     if (waitResponse(1000L, res) != 1) { | ||||||
|       return ""; |       return ""; | ||||||
|     } |     } | ||||||
|  |     res.replace(GSM_NL "OK" GSM_NL, ""); | ||||||
|  |     res.replace(GSM_NL, ""); | ||||||
|     res.trim(); |     res.trim(); | ||||||
|     return res; |     return res; | ||||||
|   } |   } | ||||||
|   | |||||||
| @@ -232,6 +232,8 @@ public: | |||||||
|     if (waitResponse(1000L, res) != 1) { |     if (waitResponse(1000L, res) != 1) { | ||||||
|       return ""; |       return ""; | ||||||
|     } |     } | ||||||
|  |     res.replace(GSM_NL "OK" GSM_NL, ""); | ||||||
|  |     res.replace(GSM_NL, ""); | ||||||
|     res.trim(); |     res.trim(); | ||||||
|     return res; |     return res; | ||||||
|   } |   } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user