From 0b3ac1d51e66ddb4ca1c08caacd3859f8776e0ac Mon Sep 17 00:00:00 2001 From: Yagami-Jiang <119273528+Yagami-Jiang@users.noreply.github.com> Date: Wed, 23 Aug 2023 09:58:29 +0800 Subject: [PATCH] Update SwitchInternalPIDRegulation.py --- .../utils/FanControl/SwitchInternalPIDRegulation.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/broadcom/sonic-platform-modules-cel/silverstone-v2/utils/FanControl/SwitchInternalPIDRegulation.py b/platform/broadcom/sonic-platform-modules-cel/silverstone-v2/utils/FanControl/SwitchInternalPIDRegulation.py index 2697ffad7719..fda0923647dc 100755 --- a/platform/broadcom/sonic-platform-modules-cel/silverstone-v2/utils/FanControl/SwitchInternalPIDRegulation.py +++ b/platform/broadcom/sonic-platform-modules-cel/silverstone-v2/utils/FanControl/SwitchInternalPIDRegulation.py @@ -130,6 +130,10 @@ def pid_control(self): sw_temp = self.exception_data_handling() if not sw_temp: return DUTY_MAX + if sw_temp >= 124: # TO power off Switch board + self.syslog.critical("If the Switch Internal temperature exceeds 124°, " + "the Switch board will be powered off. If you want to restore, do AC operation") + os.popen("i2cset -y -f 100 0x0d 0x26 0xfd") if len(T_LIST) < 2: T_LIST.append(float(sw_temp)) self.syslog.debug("Init Switch Internal PID Control T_LIST:%s" % T_LIST)