Minor bug fix

Quick fix for network selection.
tildatorch
Alistair MacDonald 2018-08-28 21:42:41 +01:00 committed by GitHub
parent 6c79e6fc97
commit 6cd5d3e16b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)