File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 44
55[ Full Changelog] ( https://github.com/rust-embedded/rust-spidev/compare/0.6.0...HEAD )
66
7+ - Added support for querying the configuration of a SPI device.
8+
79## 0.6.0 / 2023-08-03
810
911[ Full Changelog] ( https://github.com/rust-embedded/rust-spidev/compare/0.5.2...0.6.0 )
Original file line number Diff line number Diff line change @@ -253,8 +253,9 @@ impl Spidev {
253253 let speed = spidevioctl:: get_max_speed_hz ( fd) ?;
254254 let lsb_first = ( spidevioctl:: get_lsb_first ( fd) ?) != 0 ;
255255
256- // Try to get the mode as 32-bit (RD_MODE32). Older kernels may return ENOTTY
257- // indicating 32-bit is not supported. In that case we retry in 8-bit mode.
256+ // Try to get the mode as 32-bit (`RD_MODE32`). Older kernels may return
257+ // `ENOTTY` indicating 32-bit is not supported. In that case we retry in
258+ // 8-bit mode.
258259 let mode_bits = spidevioctl:: get_mode_u32 ( fd) . or_else ( |err| {
259260 if err. raw_os_error ( ) == Some ( libc:: ENOTTY ) {
260261 spidevioctl:: get_mode ( fd) . map ( |value| value as u32 )
You can’t perform that action at this time.
0 commit comments