From 6cd5d3e16b816803f0fdb4921948ac8a1b5cc3fd Mon Sep 17 00:00:00 2001 From: Alistair MacDonald Date: Tue, 28 Aug 2018 21:42:41 +0100 Subject: [PATCH] Minor bug fix Quick fix for network selection. --- lib/sim800.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sim800.py b/lib/sim800.py index 9f7d2ea..983e63e 100644 --- a/lib/sim800.py +++ b/lib/sim800.py @@ -463,7 +463,7 @@ def setoperator(mode, format=None, operator=None): if format is not None: params += "," + str(format) if operator is not None: - params += "," + str(operator) + params += ",\"" + str(operator) + "\"" command("AT+COPS=" + str(mode) + params, 120000) # Get the activity status (returns 0=ready, 2=unknown, 3=ringing, 4=call in progress)