Skip to content

Commit

Permalink
fix gt7 restart
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekyDeaks committed Apr 11, 2023
1 parent 5b5e274 commit 9ff178b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stm/gt7/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ def process_packet(self, timestamp, packet):
if not currp.in_race:
self.save_log()
return

if currp.current_lap < lastp.current_lap:
# possibly restarted the event
self.save_log()

if not self.log:
self.track_detector = GT7TrackDetector()
Expand Down

0 comments on commit 9ff178b

Please sign in to comment.