Trivial typo fix in documentation

This commit is contained in:
Marc Poulhiès 2020-11-23 18:56:39 +01:00 committed by Marcel
parent 80a165cf11
commit e10fa1a35a

View file

@ -191,12 +191,12 @@ impl PowerMode {
/// To determine the slave address of your device you can use `i2cdetect -y 1` on linux. /// To determine the slave address of your device you can use `i2cdetect -y 1` on linux.
/// The 7-bit device address is 111011x. The 6 MSB bits are fixed. /// The 7-bit device address is 111011x. The 6 MSB bits are fixed.
/// The last bit is changeable by SDO value and can be changed during operation. /// The last bit is changeable by SDO value and can be changed during operation.
/// Connecting SDO to GND results in slave address 1110110 (0x76); connection it to V DDIO results in slave /// Connecting SDO to GND results in slave address 1110110 (0x76); connecting it to V DDIO results in slave
/// address 1110111 (0x77), which is the same as BMP280s I2C address. /// address 1110111 (0x77), which is the same as BMP280s I2C address.
/// ///
#[derive(Debug, Clone, Copy)] #[derive(Debug, Clone, Copy)]
pub enum I2CAddress { pub enum I2CAddress {
/// Primary Slave Address 0x77 /// Primary Slave Address 0x76
Primary, Primary,
/// Secondary Slave Address 0x77 /// Secondary Slave Address 0x77
Secondary, Secondary,