You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
It's not clear when can::ErrorKind::Acknowledge should be returned #387
Its docs say "An ACK error shall be detected by a transmitter whenever it does not monitor a dominant bit during the ACK slot.", but Can::transmit only enqueues a frame for transmission, so it's impossible to detect this condition for the frame passed there. Can::transmitcould check if any previous frame caused an ACK error and return an error, but then its return value indicates whether a different frame was transmitted successfully.
I fully agree with jonas here.
The error kinds were chosen to map to the error conditions defined by the CAN spec (same wording in the doc strings as the description in the spec).
For our transmit() interface returning an ACK error does not make sense as those should be handled internally by the controller.
Activity
eldruin commentedon Jun 6, 2022
cc: @timokroeger
timokroeger commentedon Jun 6, 2022
I fully agree with jonas here.
The error kinds were chosen to map to the error conditions defined by the CAN spec (same wording in the doc strings as the description in the spec).
For our
transmit()interface returning an ACK error does not make sense as those should be handled internally by the controller.eldruin commentedon Jul 5, 2022
We discussed in the WG meeting that we could keep the variant but improve its documentation.
Any change suggestions?
Merge #394
Merge #394