- send TempCtrl:Soll if changed

This commit is contained in:
jens
2020-12-01 19:59:55 +01:00
parent 806259963c
commit 463c2415d2
+5 -2
View File
@@ -150,9 +150,12 @@ class TcTask(ATask):
async def on_process(self):
print("{}: Started with interval {} s".format(self.msg_handler.get_key(), self.interval))
temp_soll = Value()
while True:
self.tc.set_theta_soll(self.temp_soll)
await self.send({'Soll': self.temp_soll})
temp_soll.set(self.temp_soll)
if temp_soll.is_changed():
self.tc.set_theta_soll(temp_soll.get())
await self.send({'Soll': temp_soll.get()})
self.tc.process()
await asyncio.sleep(self.interval)