Skip to content

Commit

Permalink
Merge branch 'main' into add-static-analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottGibb authored Nov 27, 2024
2 parents 0184f5d + b01d76e commit a08754a
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 5 deletions.
23 changes: 23 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: fix
prefix-development: chore
include: scope

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: chore
include: scope
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "tmag5273"
rust-version = "1.81" # required for core errors functionality when working with no-std environments
version = "0.1.0"
version = "0.1.1"
edition = "2021"
authors = [
"Scott Gibb <scott.gibb@dyson.com",
"Pete Kubiak <pete.kubiak@dyson.com>",
"Pete Kubiak <peter.kubiak@dyson.com>",
"James Sizeland <james.sizeland@dyson.com>",
]
repository = "https://stash.dyson.global.corp/projects/NEA/repos/rs-tmag5273-driver/browse"
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ where
// Set the Mag Channels to be enabled
let sensor_config_1_register: SensorConfig1Register = self
.get_config_register::<SensorConfig1Register>()?
.with_sleep_time(SleepTime::Ms10000)
.with_sleep_time(SleepTime::Ms20000)
.with_mag_channel(MagneticChannel::XYZ);
self.set_config_register(sensor_config_1_register)?;

Expand Down
4 changes: 2 additions & 2 deletions src/registers/sensor_config_1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ pub enum SleepTime {
Ms2000 = 0xA,
// 5000 ms
Ms5000 = 0xB,
// 10000 ms
Ms10000 = 0xC,
// 20000 ms
Ms20000 = 0xC,
}
/// Enables data acquisition of the magnetic axis channel(s)
/// This maps to MAG_CH_EN in the datasheet.
Expand Down

0 comments on commit a08754a

Please sign in to comment.