Skip to content

Commit

Permalink
drivers/lsm303agr: Rename deprecated unit G to GForce
Browse files Browse the repository at this point in the history
(cherry picked from commit 8e2d269)
  • Loading branch information
chrysn authored and maribu committed Apr 25, 2023
1 parent 52c19d8 commit ab9e067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/lsm303agr/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ impl registration::Drivable for &SaulLSM {
let data = device.accel_data()
.map_err(|_| registration::Error)?;
// 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))
}
}

Expand Down

0 comments on commit ab9e067

Please sign in to comment.