fix integer compare

This commit is contained in:
Christian Rotzoll 2019-04-10 01:25:50 +01:00
parent 6d9b85f741
commit c46d29deef

View File

@ -37,7 +37,7 @@ for (( n=0; n<15; ++n )); do
voltFloat=$(echo "${CoreVoltage/V/}*10000" | bc)
voltInt=${voltFloat/.*}
echo "V -> ${voltFloat}/${voltInt}"
if [ ${voltInt} -lt 1.2500 ]; then
if [ ${voltInt} -lt 12500 ]; then
echo "Voltage too low"
else
echo "Voltage OK"