Skip to content

Commit f11a41f

Browse files
committed
Setting is_error_frame message property in neovi interface
1 parent 6a3da0f commit f11a41f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

can/interfaces/ics_neovi/neovi_bus.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,9 @@ def _ics_msg_to_message(self, ics_msg):
364364
is_remote_frame=bool(
365365
ics_msg.StatusBitField & ics.SPY_STATUS_REMOTE_FRAME
366366
),
367+
is_error_frame=bool(
368+
ics_msg.StatusBitField2 & ics.SPY_STATUS2_ERROR_FRAME
369+
),
367370
error_state_indicator=bool(
368371
ics_msg.StatusBitField3 & ics.SPY_STATUS3_CANFD_ESI
369372
),
@@ -384,6 +387,9 @@ def _ics_msg_to_message(self, ics_msg):
384387
is_remote_frame=bool(
385388
ics_msg.StatusBitField & ics.SPY_STATUS_REMOTE_FRAME
386389
),
390+
is_error_frame=bool(
391+
ics_msg.StatusBitField2 & ics.SPY_STATUS2_ERROR_FRAME
392+
),
387393
channel=ics_msg.NetworkID,
388394
)
389395

0 commit comments

Comments
 (0)