mirror of
https://github.com/commaai/msgq.git
synced 2026-06-13 08:25:46 +08:00
SubMaster: ensure msg is always a reader (#557)
* SubMaster: ensure msg is always a reader * fix
This commit is contained in:
@@ -187,7 +187,7 @@ class SubMaster:
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user