- pot: handle 0 in alpha_delay

This commit is contained in:
jens
2020-12-11 08:30:15 +01:00
parent 52e3cf733d
commit c4e6aadaca
+1 -1
View File
@@ -21,7 +21,7 @@ class Pot(APlant):
self.theta_amb = theta_amb
self.alpha = self.dt / 1
self.alpha_delay = self.dt/self.Td
self.alpha_delay = self.dt/self.Td if self.Td > 0 else 1
self.power_set = 0
self.power_actual = 0