1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/lsm303agr: Rename deprecated unit G to GForce

This commit is contained in:
chrysn 2023-04-25 09:23:21 +02:00
parent 6724e851ca
commit 8e2d26923a

View File

@ -93,7 +93,7 @@ impl registration::Drivable for &SaulLSM {
let data = device.accel_data() let data = device.accel_data()
.map_err(|_| registration::Error)?; .map_err(|_| registration::Error)?;
// Data is in the +-2g range by default, which doesn't overflow even the i16 SAUL uses // Data is in the +-2g range by default, which doesn't overflow even the i16 SAUL uses
Ok(Phydat::new(&[data.x as _, data.y as _, data.z as _], Some(saul::Unit::G), -3)) Ok(Phydat::new(&[data.x as _, data.y as _, data.z as _], Some(saul::Unit::GForce), -3))
} }
} }