From cdb7b9ef5c93cc36007801c3e21b600435561929 Mon Sep 17 00:00:00 2001 From: leimingsheng Date: Sun, 4 Jan 2026 16:59:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(master=20:=20nicsensor)=20update=20to=201.8?= =?UTF-8?q?.9=20=E4=BF=AE=E6=AD=A3pmbus=E7=9A=84=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nicsensor.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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"