Skip to content

Commit

Permalink
Merge branch 'master' into feat/config-typed-builder
Browse files Browse the repository at this point in the history
  • Loading branch information
elpiel committed Dec 27, 2023
2 parents a1b9ef8 + f65cda6 commit 018d63a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ rust-version = "1.65"
default = []

defmt-03 = ["dep:defmt"]
serde = ["dep:serde"]

nightly = ["dep:embedded-hal-async"]
config-builder = ["dep:typed-builder"]
Expand All @@ -26,6 +27,7 @@ embedded-hal = "0.2"
embedded-hal-async = { version = "1.0.0-rc.3", optional = true }

defmt = { version = "0.3", optional = true }
serde = { version = "1", default-features = false, features = ["derive"], optional = true }

num-traits = { version = "0.2", default-features = false, features = ["libm"] }

Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,8 @@ impl Status {
/// Sensor data
#[derive(Debug, Copy, Clone)]
#[cfg_attr(feature = "defmt-03", derive(defmt::Format))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
/// Sensor data
pub struct SensorData {
///The measured pressure: Pascals (Pa)
pub pressure: f64,
Expand Down

0 comments on commit 018d63a

Please sign in to comment.