Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with Siemens/Cinterion TC35i #7

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Forgot to save and commit this
Albert-Jan Nijburg committed Aug 22, 2011

Verified

This commit was signed with the committer’s verified signature. The key has expired.
jonhadfield Jon Hadfield
commit c8d2089a0114d91c3b0dc099f936fa360c9ac719
2 changes: 1 addition & 1 deletion lib/pygsm/gsmmodem.py
Original file line number Diff line number Diff line change
@@ -72,7 +72,7 @@ class GsmModem(object):
retry_delay = 2
max_retries = 10
modem_lock = threading.RLock()

modem_type = ""

def __init__(self, *args, **kwargs):
"""Creates, connects to, and boots a GSM Modem. All of the arguments
2 changes: 1 addition & 1 deletion lib/pygsm/pdusmshandler.py
Original file line number Diff line number Diff line change
@@ -72,7 +72,7 @@ def _send_pdu(self, pdu):
self.modem.command(pdu_string, write_term=chr(26))
return True
except:
if getattr(err, "code", None) == 500 and self.modem.modem_type = 'TC35i':
if getattr(err, "code", None) == 500 and self.modem.modem_type == 'TC35i':
time.sleep(self.retry_delay)
retries += 1
continue