From 1f872f069b4fd37ff264dbae1b3677b9a3de6027 Mon Sep 17 00:00:00 2001 From: Stefan Krulj Date: Wed, 20 Feb 2013 01:34:40 +0100 Subject: [PATCH] fixed a typo --- sys/brathuhn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/brathuhn.py b/sys/brathuhn.py index 52f65ea..1ab52c7 100644 --- a/sys/brathuhn.py +++ b/sys/brathuhn.py @@ -276,7 +276,7 @@ def loop(): while True: try: - if reconnect or cl.connected: #TODO check if it works + if reconnect or (not cl.connected): #TODO check if it works print "--reconnect--" s=RECONNECT_INTERVAL-(time.time()-last_connect) if s>0: