- Minor: Fixed flag cases being incorrect, leading to unexpected behaviour.
- Minor: Added default feature
log
to enable logging. - Minor: Reduced unnecessary info logs.
- Major: Added a read Buffer. Default buffer size is 256, which should be enough for most cases.
- Major: Added
new_with_buffers
toFdCanUsb
to allow for custom buffers. - Major: Changed
read_ok
andread_response
to use the buffer and fix an issue of missing bytes. - Major: Made
read_ok
,read_response
, andwrite
private. - Minor: Changed packet logs to
Debug
level.
- Major: Fixed error types not being public.
- Major: Added
error.rs
and error types to reduce usage ofstd::io::Error
. - Major: Fixed an incorrect
/ 2
when calculating thepadding_len
for frames.
- Major: Changed
CanFdFrame::new
andCanFdFrame::new_with_data
to return Err if more than 64 bytes are provided. - Minor: Moved the
flush
method to theserial2
feature to use thediscard_buffers
method in addition toflush
. - Minor: Increased the
read_ok
buffer to 100 bytes to read the error message if one occurs. Ideally this would read all bytes not just 100.
- Major: Changed License to apache-2.0
- Minor: Added default feature
serial2
, and movedserial2
specific code toserial2
feature flag.
- Initial release