Skip to content

Commit

Permalink
RSDK-4366 odroid kernel crashes when using pwm (viamrobotics#3315)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviamiller authored Dec 8, 2023
1 parent 07b5eb7 commit a292ab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/board/genericlinux/hw_pwm.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (pwm *pwmDevice) unexport() error {
// On boards like the Odroid C4, there is a race condition in the kernel where, if you unexport
// the pin too quickly after changing something else about it (e.g., disabling it), the whole
// PWM system gets corrupted. Sleep for a small amount of time to avoid this.
time.Sleep(time.Microsecond)
time.Sleep(time.Millisecond)
if err := pwm.writeChip("unexport", uint64(pwm.line)); err != nil {
return err
}
Expand Down

0 comments on commit a292ab3

Please sign in to comment.