Fixed incomplete code change

This commit is contained in:
Nate Schoolfield 2021-01-27 04:07:25 -08:00
parent ad0a150846
commit 2598d9d3f4
1 changed files with 2 additions and 1 deletions

View File

@ -47,6 +47,7 @@ graph_figure = plt.figure()
graph_axes = graph_figure.add_subplot(1, 1, 1)
graph_data = {}
last_heartrate = 0
last_tick_time = None
tick_seconds = 0.5
@ -171,7 +172,7 @@ def flush_old_raw_data(tick_time):
def average_raw_data(tick_time):
global sleep_data
global last_heartrate
timestamp = datetime.fromtimestamp(tick_time)
csv_out = {'time': timestamp }