Skip to content

Commit b20d30b

Browse files
committed
nmt: fix update_heartbeat to use bytes
1 parent 166c469 commit b20d30b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎canopen/nmt.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def stop_heartbeat(self):
270270

271271
def update_heartbeat(self):
272272
if self._send_task is not None:
273-
self._send_task.update([self._state])
273+
self._send_task.update(bytes([self._state]))
274274

275275

276276
class NmtError(Exception):

0 commit comments

Comments
 (0)