From 69afa72f348e562553208d4e9221d66584bfd159 Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Tue, 24 May 2022 21:48:19 +0200 Subject: [PATCH] fixed heating logic --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 2a2a275..6642f76 100644 --- a/main.py +++ b/main.py @@ -97,14 +97,14 @@ while True: is_heating = True elif system_on == True and temp_curr > temp_tgt + temp_gap: is_heating = False - else: - is_heating = False + ctrl_relais(is_heating) if system_on == True: system_on_string = "ON " else: system_on_string = "OFF" + is_heating = False if is_heating == True: heat_string = ">H<" @@ -113,4 +113,4 @@ while True: lcd.move_to(0, 0) lcd.putstr("ACT: {0:3.1f}".format(temp_curr) + chr(0) + "C " + heat_string + - "\nTGT: {0:3.1f}".format(temp_tgt) + chr(0) + "C " + system_on_string) \ No newline at end of file + "\nTGT: {0:3.1f}".format(temp_tgt) + chr(0) + "C " + system_on_string)