Skip to content

Commit 9f57751

Browse files
ArunSaravananBalachandrandaall
authored andcommitted
Dell S6100: Watchdog - Fix Python3 incompatibility (#6734)
To make watchdog.arm() method python3 compatible in DellEMC S6100.
1 parent dc2ea28 commit 9f57751

File tree

1 file changed

+2
-2
lines changed
  • platform/broadcom/sonic-platform-modules-dell/s6100/sonic_platform

1 file changed

+2
-2
lines changed

platform/broadcom/sonic-platform-modules-dell/s6100/sonic_platform/watchdog.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ def arm(self, seconds):
151151
if self.is_armed():
152152
gpio_val = self._read_gpio_file(gpio)
153153
high_val = gpio_val | (1 << 15)
154-
if self._write_gpio_file(gpio, hex(high_val)) != -1:
154+
if self._write_gpio_file(gpio, hex(high_val).encode('utf-8')) != -1:
155155
low_val = high_val & 0xFFFF7FFF
156-
if self._write_gpio_file(gpio, hex(low_val)) != -1:
156+
if self._write_gpio_file(gpio, hex(low_val).encode('utf-8')) != -1:
157157
self.armed_time = self._get_time()
158158
self.timeout = seconds
159159
return seconds

0 commit comments

Comments
 (0)