Skip to content

Commit cecca4e

Browse files
committed
Add changelog entry for querying the configuration.
1 parent 5a8435b commit cecca4e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
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)

src/lib.rs

+3-2
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)