Skip to content

Commit

Permalink
RSDK-482 FIX (viamrobotics#2926)
Browse files Browse the repository at this point in the history
  • Loading branch information
martha-johnston authored Sep 14, 2023
1 parent a2e4d3f commit 5ba9a87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/motor/gpio/motor_encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ func (m *EncodedMotor) rpmMonitor() {
}
lastTime := time.Now().UnixNano()

timer := time.NewTimer(50 * time.Millisecond)
for {
timer := time.NewTimer(50 * time.Millisecond)
select {
case <-m.cancelCtx.Done():
timer.Stop()
Expand Down

0 comments on commit 5ba9a87

Please sign in to comment.