fix(master : nicsensor) update to 1.8.9
修正pmbus的显示功能
This commit is contained in:
parent
71a40e88f6
commit
cdb7b9ef5c
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
SCRIPT_VERSION="1.8.8"
|
SCRIPT_VERSION="1.8.9"
|
||||||
# ---------------------------------------------------------
|
# ---------------------------------------------------------
|
||||||
# Project Feature Varible (Change if need)
|
# Project Feature Varible (Change if need)
|
||||||
# ---------------------------------------------------------
|
# ---------------------------------------------------------
|
||||||
@ -1281,8 +1281,10 @@ transfer_pmbus_command(){
|
|||||||
if [ "$1" = "get" ];then
|
if [ "$1" = "get" ];then
|
||||||
pmbus_res=`i2ctransfer -y $i2c_bus w1@$chip_slave $2 r$3`
|
pmbus_res=`i2ctransfer -y $i2c_bus w1@$chip_slave $2 r$3`
|
||||||
reset_pca9548 $i2c_bus $pca9548_slave
|
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"
|
fmt_print "console" $INFO "Result: $pmbus_res"
|
||||||
|
else
|
||||||
|
fmt_print "console" $WARNING "Not Support Set function in this version : $SCRIPT_VERSION"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1291,6 +1293,9 @@ process_pmbus(){
|
|||||||
transfer_pmbus_command $pmbus_op $hex_pmbus_cmd $hex_pmbus_size
|
transfer_pmbus_command $pmbus_op $hex_pmbus_cmd $hex_pmbus_size
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# ---------------------------------------------------------
|
||||||
|
# Reserve Function
|
||||||
|
# ---------------------------------------------------------
|
||||||
# This function is temporarily retained for future functional expansion
|
# This function is temporarily retained for future functional expansion
|
||||||
handle_reserve(){
|
handle_reserve(){
|
||||||
fmt_print "console" $INFO "Waiting for user defined"
|
fmt_print "console" $INFO "Waiting for user defined"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user