Skip to content

Commit

Permalink
Update HandheldCompanion/Managers/MotionManager.cs
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
Valkirie and coderabbitai[bot] authored Nov 22, 2023
1 parent c330092 commit 7abed0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HandheldCompanion/Managers/MotionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ private static void CalculateMotion(ControllerState controllerState)

// update timestamp
double TotalMilliseconds = TimerManager.Stopwatch.Elapsed.TotalMilliseconds;
DeltaSeconds = (TotalMilliseconds - PreviousTotalMilliseconds) / 1000L;
DeltaSeconds = (TotalMilliseconds - PreviousTotalMilliseconds) / 1000;
PreviousTotalMilliseconds = TotalMilliseconds;

//toggle motion when trigger is pressed
Expand Down

0 comments on commit 7abed0f

Please sign in to comment.