Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sleep to avoid udev race condition #185
sleep 100 ms after export to avoid race condition as udev needs the opportunity to set group ownership and permission Test instructions: ================== reboot, log back in, wait for udev to set group ownership and permission: $ ls -la /sys/devices/platform/ocp/48304000.epwmss/48304200.pwm/pwm/pwmchip6/export -rw-rw---- 1 root pwm 4096 Nov 2 04:02 /sys/devices/platform/ocp/48304000.epwmss/48304200.pwm/pwm/pwmchip6/export run test program: python ~/issue185.py contents of test program: import Adafruit_BBIO.PWM as PWM PWM.start("P8_13", 50, 1000, 0) PWM.stop("P8_13") PWM.cleanup()
- Loading branch information