supplementary submission

This commit is contained in:
leimingsheng 2024-12-10 14:42:30 +08:00
parent 43c1c4b210
commit 7e3a6a1c38

@ -182,7 +182,11 @@ format_log_print(){
# @Param4 pca9548 channel # @Param4 pca9548 channel
# @Param5 pcie slot number # @Param5 pcie slot number
do_i2c_detect(){ do_i2c_detect(){
if [ $nic_type == "ocp" ];then
format_print $INFO "OCP slot $5 : bus$1 9548channel$4"
else
format_print $INFO "PCIe slot $5 : bus$1 9548channel$4" format_print $INFO "PCIe slot $5 : bus$1 9548channel$4"
fi
i2ctransfer -y $1 w1@$2 $3 i2ctransfer -y $1 w1@$2 $3
i2cdetect -y $1 i2cdetect -y $1
} }