mirror of
				https://github.com/KevinMidboe/TinyGSM.git
				synced 2025-10-29 18:00:18 +00:00 
			
		
		
		
	Fix get modem name
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
		| @@ -141,8 +141,8 @@ class TinyGsmModem { | |||||||
|     thisModem().sendAT(GF("+GMM")); |     thisModem().sendAT(GF("+GMM")); | ||||||
|     String res2; |     String res2; | ||||||
|     if (thisModem().waitResponse(1000L, res2) != 1) { return "unknown"; } |     if (thisModem().waitResponse(1000L, res2) != 1) { return "unknown"; } | ||||||
|     res1.replace("\r\nOK\r\n", ""); |     res2.replace("\r\nOK\r\n", ""); | ||||||
|     res1.replace("\rOK\r", ""); |     res2.replace("\rOK\r", ""); | ||||||
|     res2.trim(); |     res2.trim(); | ||||||
|  |  | ||||||
|     String name = res1 + String(' ') + res2; |     String name = res1 + String(' ') + res2; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user