final fixes for PR1.3
[ussd-widget] / ussd4all / ussdquery / ussdquery.py
index 2705dad..fa38dec 100755 (executable)
@@ -65,6 +65,8 @@ def init_modem(modem):
                if modem == None :
                        # OK response should be recieved shortly
                        modem = pexpect.spawn('pnatd', [], 2)
+                       # FIXME This is a dirty hack. A better solution needed
+                       time.sleep(0.5)
                try :
                        modem.send('at\r');
                        # Read our "at" command