Remove deadlock due to PWM being already exported

This commit is contained in:
2023-01-02 12:41:43 +01:00
parent 5433a0285f
commit 1ca2f99608

View File

@@ -42,9 +42,10 @@ enable_pwm_channel() {
}
set_pwm() {
enable_pwm_channel 1
if [ "$1" = "clean" ]; then
echo 1 >$PWM_PATH/unexport
else
enable_pwm_channel 1
fi
}