MLSTRM / relay-controller

Controller program written for the FF Series Relay.
2 stars 1 forks source link

Team timer resets to previous game end on split button click #2

Closed MLSTRM closed 4 years ago

MLSTRM commented 4 years ago

Click split button: splitClick(): updateSplits(): TimerLabel.Text = current (resolved time span from teamSplits[splitNum]-teamGameEnd[game])

Next timer tick: updateTimerEvent(): teamSplits[splitNum] = current updateSplits() TimerLabel.Text = current (resolved in the same way)

time to resolve hasn't been updated immediately after we move on so it doesn't exist - then the resolved timeSpan flattens out to -1*(previous game time). - since we don't show the sign it doesn't appear that way, so it jumps "back" to the previous game time until the next timer update.

Possible solutions:

MLSTRM commented 4 years ago

Cause confirmed as theorised above, shows much more prevalently if over an hour difference since the first 2 digits swap over.

MLSTRM commented 4 years ago

Appears to happen to game end times also.

MLSTRM commented 4 years ago

Fixed under bfc8df1