mirror of
				https://github.com/KevinMidboe/TinyGSM.git
				synced 2025-10-29 18:00:18 +00:00 
			
		
		
		
	Fixed mux closed
This commit is contained in:
		| @@ -481,9 +481,9 @@ public: | ||||
|           } | ||||
|           data = ""; | ||||
|         } else if (data.endsWith(GF("CLOSED"))) { | ||||
|           int nl = data.lastIndexOf(GSM_NL, data.length()-8); | ||||
|           int coma = data.indexOf(',', nl+2); | ||||
|           int mux = data.substring(nl+2, coma).toInt(); | ||||
|           int muxStart = max(0,data.lastIndexOf(GSM_NL, data.length()-8)); | ||||
|           int coma = data.indexOf(',', muxStart); | ||||
|           int mux = data.substring(muxStart, coma).toInt(); | ||||
|           if (mux >= 0 && mux < TINY_GSM_MUX_COUNT && sockets[mux]) { | ||||
|             sockets[mux]->sock_connected = false; | ||||
|           } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user