File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 4
4
5
5
[ Full Changelog] ( https://github.com/rust-embedded/rust-spidev/compare/0.6.0...HEAD )
6
6
7
+ - Added support for querying the configuration of a SPI device.
8
+
7
9
## 0.6.0 / 2023-08-03
8
10
9
11
[ 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 {
253
253
let speed = spidevioctl:: get_max_speed_hz ( fd) ?;
254
254
let lsb_first = ( spidevioctl:: get_lsb_first ( fd) ?) != 0 ;
255
255
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.
258
259
let mode_bits = spidevioctl:: get_mode_u32 ( fd) . or_else ( |err| {
259
260
if err. raw_os_error ( ) == Some ( libc:: ENOTTY ) {
260
261
spidevioctl:: get_mode ( fd) . map ( |value| value as u32 )
You can’t perform that action at this time.
0 commit comments