File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -113,4 +113,4 @@ def serialise_ev42(
113113 # Generate the output and replace the file_identifier
114114 buffer = builder .Output ()
115115 buffer [4 :8 ] = FILE_IDENTIFIER
116- return buffer
116+ return bytes ( buffer )
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ def _complete_buffer(
158158 timestamp_unix_ns : int ,
159159 alarm_status : Union [int , None ] = None ,
160160 alarm_severity : Union [int , None ] = None ,
161- ) -> bytearray :
161+ ) -> bytes :
162162 LogData .LogDataAddTimestamp (builder , timestamp_unix_ns )
163163
164164 if alarm_status is not None :
@@ -171,7 +171,7 @@ def _complete_buffer(
171171 builder .Finish (log_msg )
172172 buff = builder .Output ()
173173 buff [4 :8 ] = FILE_IDENTIFIER
174- return buff
174+ return bytes ( buff )
175175
176176
177177def _setup_builder (source_name : str ) -> Tuple [flatbuffers .Builder , int ]:
You can’t perform that action at this time.
0 commit comments