receive.py: fix a print statement and also flush the output
[SaveMySugar/python3-savemysugar.git] / src / receive.py
index 042ec63..1d4fda1 100755 (executable)
@@ -35,7 +35,7 @@ def receive(port):
         receiver.receive_loop()
         print()
         print("Message received!")
         receiver.receive_loop()
         print()
         print("Message received!")
-        print((receiver.get_text()))
+        print(receiver.get_text(), flush=True)
 
 
 def main():
 
 
 def main():