ground control to mjr travis
@@ -117,10 +117,10 @@ last_update = time.monotonic()
# Run forever
while True:
- current_time = time.monotonic()
- update_iss = False
- if current_time - last_update > UPDATE_RATE:
- update_iss = True
- last_update = current_time
- update_display(time.localtime(), update_iss)
+ now = time.monotonic()
+ new_position = False
+ if now - last_update > UPDATE_RATE:
+ new_position = True
+ last_update = now
+ update_display(time.localtime(), new_position)
time.sleep(0.5)
