Remove deadlock due to PWM being already exported

This commit is contained in:
coolneng 2023-01-02 12:41:43 +01:00
parent 5433a0285f
commit 1ca2f99608
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 2 additions and 1 deletions

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
}