linx5o commited on
Commit
b0f1fb9
·
1 Parent(s): 3bea791
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -66,9 +66,9 @@ def get_data(serial):
66
  client.publish(request_topic, json.dumps("HI"))
67
 
68
  global latest_data
69
- latest_data = None
70
  timeout = 10
71
- while latest_data is None and timeout > 0:
72
  time.sleep(1)
73
  timeout -= 1
74
 
 
66
  client.publish(request_topic, json.dumps("HI"))
67
 
68
  global latest_data
69
+ latest_data["bed_temperature"] = "N/A"
70
  timeout = 10
71
+ while latest_data["bed_temperature"] == "N/A" and timeout > 0:
72
  time.sleep(1)
73
  timeout -= 1
74