CallDistanceTransceiver.py: reset modem.ring_count before receiving
authorAntonio Ospite <ao2@ao2.it>
Sat, 2 Jan 2016 15:27:18 +0000 (16:27 +0100)
committerAntonio Ospite <ao2@ao2.it>
Mon, 4 Jan 2016 09:48:25 +0000 (10:48 +0100)
src/savemysugar/CallDistanceTransceiver.py

index 3cc4a12..bfae0b6 100755 (executable)
@@ -460,8 +460,8 @@ def test_send_receive():
     xcv.transmit("CODEX PARIS", "0")
 
     while True:
     xcv.transmit("CODEX PARIS", "0")
 
     while True:
-        xcv.receive_loop()
         modem.ring_count = 0
         modem.ring_count = 0
+        xcv.receive_loop()
         print()
         print("Message received!")
         print("\"%s\"" % xcv.get_text(), flush=True)
         print()
         print("Message received!")
         print("\"%s\"" % xcv.get_text(), flush=True)