Changeset 5111

Show
Ignore:
Timestamp:
01/27/08 13:36:28 (7 years ago)
Author:
khali
Message:

MINPWM and MAXPWM may be undefined for a given PWM output.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/prog/pwm/pwmconfig

    r5103 r5111  
    661661                        echo "  MINSTART=`echo $MINSTART |sed -e \"s/ /\n/g\" |egrep \"${pwmo}\" |sed -e \"s/.*=//g\"`" 
    662662                        echo "  MINSTOP=`echo $MINSTOP |sed -e \"s/ /\n/g\" |egrep \"${pwmo}\" |sed -e \"s/.*=//g\"`" 
    663                         echo "  MINPWM=`echo $MINPWM |sed -e \"s/ /\n/g\" |egrep \"${pwmo}\" |sed -e \"s/.*=//g\"`" 
    664                         echo "  MAXPWM=`echo $MAXPWM |sed -e \"s/ /\n/g\" |egrep \"${pwmo}\" |sed -e \"s/.*=//g\"`" 
     663                        XMINP=`echo $MINPWM | sed -e "s/ /\n/g" | egrep "${pwmo}" | sed -e "s/.*=//g"` 
     664                        [ -n "$XMINP" ] && echo "  MINPWM=$XMINP" 
     665                        XMAXP=`echo $MAXPWM | sed -e "s/ /\n/g" | egrep "${pwmo}" | sed -e "s/.*=//g"` 
     666                        [ -n "$XMAXP" ] && echo "  MAXPWM=$XMAXP" 
    665667                done 
    666668                echo