mirror of https://github.com/commaai/cereal.git
explicitly set to invalid
This commit is contained in:
parent
3038eacad1
commit
8cbd294489
|
@ -43,6 +43,7 @@ def log_from_bytes(dat: bytes) -> capnp.lib.capnp._DynamicStructReader:
|
|||
|
||||
def new_message(service: str, size: Optional[int] = None) -> capnp.lib.capnp._DynamicStructBuilder:
|
||||
dat = log.Event.new_message()
|
||||
dat.valid = False
|
||||
dat.logMonoTime = int(time.monotonic() * 1e9)
|
||||
if size is None:
|
||||
dat.init(service)
|
||||
|
|
Loading…
Reference in New Issue