From 396fd6c72f54a294e72227638f19703741529b45 Mon Sep 17 00:00:00 2001 From: Yagami-Jiang <119273528+Yagami-Jiang@users.noreply.github.com> Date: Wed, 2 Aug 2023 13:55:33 +0800 Subject: [PATCH] Update fan.py --- .../silverstone-v2/pddf/sonic_platform/fan.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platform/broadcom/sonic-platform-modules-cel/silverstone-v2/pddf/sonic_platform/fan.py b/platform/broadcom/sonic-platform-modules-cel/silverstone-v2/pddf/sonic_platform/fan.py index 9270c1791f42..b0c42ff03356 100644 --- a/platform/broadcom/sonic-platform-modules-cel/silverstone-v2/pddf/sonic_platform/fan.py +++ b/platform/broadcom/sonic-platform-modules-cel/silverstone-v2/pddf/sonic_platform/fan.py @@ -6,12 +6,11 @@ try: from sonic_platform_pddf_base.pddf_fan import PddfFan from . import helper - from . import bmc_present_config import re except ImportError as e: raise ImportError(str(e) + "- required module not found") -BMC_EXIST = bmc_present_config.get_bmc_status() +BMC_EXIST = helper.APIHelper().get_bmc_status() Fan_Direction_Cmd = "0x3a 0x62 {}" Set_Pwm_Cmd = "0x3a 0x26 0x02 {} {}" Disable_Fcs_mode = "0x3a 0x26 0x01 0x00"