Skip to content

Commit

Permalink
SubMaster: ensure msg is always a reader (commaai#557)
Browse files Browse the repository at this point in the history
* SubMaster: ensure msg is always a reader

* fix
  • Loading branch information
adeebshihadeh authored Dec 2, 2023
1 parent 65b34b4 commit 60d1ee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion messaging/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def __init__(self, services: List[str], poll: Optional[List[str]] = None,
except capnp.lib.capnp.KjException: # pylint: disable=c-extension-no-member
data = new_message(s, 0) # lists

self.data[s] = getattr(data, s)
self.data[s] = getattr(data.as_reader(), s)
self.logMonoTime[s] = 0
self.valid[s] = data.valid

Expand Down

0 comments on commit 60d1ee0

Please sign in to comment.