We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc2ea28 commit 9f57751Copy full SHA for 9f57751
platform/broadcom/sonic-platform-modules-dell/s6100/sonic_platform/watchdog.py
@@ -151,9 +151,9 @@ def arm(self, seconds):
151
if self.is_armed():
152
gpio_val = self._read_gpio_file(gpio)
153
high_val = gpio_val | (1 << 15)
154
- if self._write_gpio_file(gpio, hex(high_val)) != -1:
+ if self._write_gpio_file(gpio, hex(high_val).encode('utf-8')) != -1:
155
low_val = high_val & 0xFFFF7FFF
156
- if self._write_gpio_file(gpio, hex(low_val)) != -1:
+ if self._write_gpio_file(gpio, hex(low_val).encode('utf-8')) != -1:
157
self.armed_time = self._get_time()
158
self.timeout = seconds
159
return seconds
0 commit comments