replay assume segment number

This commit is contained in:
Willem Melching
2020-11-19 12:56:26 +01:00
parent b9b6ed2d52
commit 5ebc0dd85b
+4
View File
@@ -329,6 +329,10 @@ def keyboard_controller_thread(q, route_start_time):
seek_time_input = input('time: ')
seek_time = absolute_time_str(seek_time_input, route_start_time)
# If less than 60, assume segment number
if seek_time < 60:
seek_time *= 60
q.send_pyobj(SeekAbsoluteTime(seek_time))
except Exception as e:
print("Time not understood: {}".format(e))