Remove deadlock due to PWM being already exported
This commit is contained in:
parent
5433a0285f
commit
1ca2f99608
|
@ -42,9 +42,10 @@ enable_pwm_channel() {
|
||||||
}
|
}
|
||||||
|
|
||||||
set_pwm() {
|
set_pwm() {
|
||||||
enable_pwm_channel 1
|
|
||||||
if [ "$1" = "clean" ]; then
|
if [ "$1" = "clean" ]; then
|
||||||
echo 1 >$PWM_PATH/unexport
|
echo 1 >$PWM_PATH/unexport
|
||||||
|
else
|
||||||
|
enable_pwm_channel 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue