Skip to content

Commit

Permalink
add defmt support for DHT22 as well
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed Oct 19, 2024
1 parent 37fc154 commit 56d8ac5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ pub mod dht22 {
use super::*;

#[derive(Clone, Copy, Debug, PartialEq)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub struct Reading {
pub temperature: f32,
pub relative_humidity: f32,
Expand Down

0 comments on commit 56d8ac5

Please sign in to comment.