Changeset 2431

Show
Ignore:
Timestamp:
08/08/07 01:12:45 (1 year ago)
Author:
abaumann
Message:

attempt at a fix for ticket #531
after sending AT+MODE=2, wait to read +MBAN output before issuing next command

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/moto-sync/motosync.py

    r2426 r2431  
    802802        self.__do_cmd('AT&F')      # reset to factory defaults 
    803803        self.__do_cmd('AT+MODE=2') # change mode again 
     804        line = self.__readline()   # swallow the "+MBAN" output that MODE=2 generates 
     805        assert(line.startswith('+MBAN:'), "Unexpected output after AT+MODE=2: " + line) 
     806         
    804807        self.__do_cmd('ATE0Q0V1')  # echo off, result codes off, verbose results 
    805808