Commit bcee891
Only trigger the Error behaviour on the mandatory events
The automatic NMT transition to Pre-operational, or any other action
that has been configured in 1029h, is only required to happen on Bus-
off or Life guarding/Heartbeat time-out. Currently, all EMCYs that are
sent do trigger the error behaviour, even if the error is not a
"serious CANopen device failure". It even reverts back to pre-operational
when an error is cleared and EMCY 0x0000 is sent.
Turn off the error behaviour except for EMCY codes 0x8130 and 0x8140
which correspond to the mandatory events (although the Bus-off EMCY
actually means *recovery* from Bus-off, so the Error behavior will
happen much later than was probably intended).
Ref: #39
Change-Id: I09cc847f6dc2bcc2e32411625c33d7fe2dce23681 parent 6735cc1 commit bcee891
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
260 | 264 | | |
261 | 265 | | |
262 | 266 | | |
| |||
0 commit comments