Oven watcher time hard coded, added test json

This commit is contained in:
James Kirikland Garner
2022-12-15 14:49:32 -08:00
parent 8d770b3086
commit 9900bb4421
4 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -573,7 +573,7 @@ class SimulatedOven(Oven):
if heat_on > 0:
self.heat = heat_on
log.info("simulation: -> %dW heater: %.0f -> %dW oven: %.0f -> %dW env" % (int(self.p_heat * pid),
log.info("simulation: -> %dW heater: %.0f -> %dW oven: %.0f -> %dW env" % (int(self.p_heat * pid),
self.t_h,
int(self.p_ho),
self.t,
+1 -3
View File
@@ -35,10 +35,8 @@ class OvenWatcher(threading.Thread):
self.recording = False
self.notify_all(oven_state)
time.sleep(0.5)
time.sleep(self.oven.time_step)
def lastlog_subset(self,maxpts=50):
'''send about maxpts from lastlog by skipping unwanted data'''
totalpts = len(self.last_log)