Skip to content

Commit

Permalink
Update row.py
Browse files Browse the repository at this point in the history
  • Loading branch information
oldnapalm committed Feb 26, 2022
1 parent 8deeb59 commit 199ecfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions row.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,11 @@ def on_exit(sig, func=None):
while workout['state'] == 1:

forceplot = erg.get_force_plot()
monitor = erg.get_monitor()

# Loop while waiting for drive
while forceplot['strokestate'] != 2 and workout['state'] == 1:
time.sleep(.5)
time.sleep(.25)
forceplot = erg.get_force_plot()
workout = erg.get_workout()
if not stopped:
Expand All @@ -109,7 +110,6 @@ def on_exit(sig, func=None):
power_meter.update(0, 0)
stopped = True
else:
monitor = erg.get_monitor()
power_meter.update(monitor['power'], monitor['spm'])

# Loop during drive
Expand Down

0 comments on commit 199ecfe

Please sign in to comment.