Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
eldruin committed Jul 17, 2023
1 parent 81b577e commit b725beb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/magnetometer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ fn can_change_mode() {
vec![Register::CFG_REG_A_M, DEFAULT_CFG_REG_A_M | 0b00011100],
),
// Set high-resolution mode
I2cTrans::write(
MAG_ADDR,
vec![Register::CFG_REG_A_M, DEFAULT_CFG_REG_A_M],
),
I2cTrans::write(MAG_ADDR, vec![Register::CFG_REG_A_M, DEFAULT_CFG_REG_A_M]),
]);
assert_eq!(sensor.get_mag_mode(), MagMode::HighResolution);

Expand Down

0 comments on commit b725beb

Please sign in to comment.