#!/bin/sh

input=${1#-}
#echo $input

big=`echo ${input} |awk '{printf "%.2f\n",$1*100+16384}'`
#big=$(echo "${input}*100+16384"|bc)
#echo $big

num=${big%%.*} 
#echo $num

result=`printf 0x%x'\n' $num`
#echo $result

if [ -e /bin/busybox ]; then
echo "Set vcom_value to $result "
echo $result > /sys/class/hwmon/hwmon0/device/vcom_value
fi
