Compare commits

...

3 Commits

Author SHA1 Message Date
TPH
fa2089b8a3 Revert "command_parser: fix typo"
Keep PR to one issue at a time!

This reverts commit 34f09030e5.
2019-09-13 11:14:44 +01:00
hartytp
34f09030e5 command_parser: fix typo 2019-09-13 11:12:53 +01:00
hartytp
b118ad0cec AD7172: fix typo in comment [NFC] 2019-09-13 11:09:41 +01:00

View File

@ -25,7 +25,7 @@ impl<SPI: Transfer<u8>, NSS: OutputPin> Adc<SPI, NSS> {
Ok(adc) Ok(adc)
} }
/// `0x00DX` for AD7271-2 /// `0x00DX` for AD7272-2
pub fn identify(&mut self) -> Result<u16, AdcError<SPI::Error>> { pub fn identify(&mut self) -> Result<u16, AdcError<SPI::Error>> {
self.read_reg(&Id) self.read_reg(&Id)
.map(|id| id.id()) .map(|id| id.id())