CallDistanceTransceiver.py: reset modem.ring_count before receiving
[SaveMySugar/python3-savemysugar.git] / src / savemysugar / CallDistanceTransceiver.py
index 6361afa..bfae0b6 100755 (executable)
@@ -457,9 +457,11 @@ def test_send_receive():
 
     modem.transceiver = xcv
 
 
     modem.transceiver = xcv
 
+    xcv.transmit("CODEX PARIS", "0")
+
     while True:
     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)