ad7172: fix doc

Closes Gitea issue #1
This commit is contained in:
Astro 2019-09-19 01:00:49 +02:00
parent 6d4676a72a
commit 1514131fa3
1 changed files with 1 additions and 1 deletions

View File

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