diff --git a/nicsensor.sh b/nicsensor.sh index aa1ce9f..7067c31 100755 --- a/nicsensor.sh +++ b/nicsensor.sh @@ -1,5 +1,5 @@ #!/bin/sh -SCRIPT_VERSION="1.8.8" +SCRIPT_VERSION="1.8.9" # --------------------------------------------------------- # Project Feature Varible (Change if need) # --------------------------------------------------------- @@ -1281,8 +1281,10 @@ transfer_pmbus_command(){ if [ "$1" = "get" ];then pmbus_res=`i2ctransfer -y $i2c_bus w1@$chip_slave $2 r$3` reset_pca9548 $i2c_bus $pca9548_slave - fmt_print "console" $INFO "$option_data ,Command Code:$pmbus_res" + fmt_print "console" $INFO "$option_data ,Command Code:$2" fmt_print "console" $INFO "Result: $pmbus_res" + else + fmt_print "console" $WARNING "Not Support Set function in this version : $SCRIPT_VERSION" fi } @@ -1291,6 +1293,9 @@ process_pmbus(){ transfer_pmbus_command $pmbus_op $hex_pmbus_cmd $hex_pmbus_size } +# --------------------------------------------------------- +# Reserve Function +# --------------------------------------------------------- # This function is temporarily retained for future functional expansion handle_reserve(){ fmt_print "console" $INFO "Waiting for user defined"