pwmconfig: Print the initial PWM values

Print the initial PWM values before letting the user change them. This
should be useful to better understand what happens next, and for user
support in general.
This commit is contained in:
Jean Delvare committed 2013-05-01 10:29:00 +00:00
1 parent 75e1846326
commit 2096d14c18
2 files changed
+3 -1

No files matched your search

+2 -1
View File
@@ -236,7 +236,8 @@ echo
echo 'Found the following PWM controls:'
for i in $PWM
do
echo " $i"
P=`cat $i`
echo " $i current value: $P"
if [ -w $i ]
then
# First check if PWM output is in automatic mode