]> git.neil.brown.name Git - freerunner.git/commitdiff
Minor fix for gsm-getsms
authorNeilBrown <neilb@suse.de>
Mon, 7 Feb 2011 06:54:17 +0000 (17:54 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 7 Feb 2011 06:54:17 +0000 (17:54 +1100)
gsm/gsm-getsms.py

index 48a0790b751438d708f25807b31dbc664fd73589..f1fd2ec51d0affc3540284bf471d865d8a8b085d 100644 (file)
 #
 # For now, ignore anything longer than the specified length.
 
+import os
+os.environ['PYTRACE'] = '1'
 
-import atchan, sys, re, os
+import atchan, sys, re
 from storesms import SMSmesg, SMSstore
 
 
@@ -179,7 +181,7 @@ def main():
     mirror = load_mirror(mfile)
     mirror_changed = False
 
-    chan.chat('AT+CMFG=1', ['OK','ERROR'])
+    chan.chat('AT+CMGF=1', ['OK','ERROR'])
     if mode == 'new':
         chan.atcmd('+CMGL="REC UNREAD"')
     else: