Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
DanNixon committed Nov 13, 2024
1 parent 11bc1cc commit ee38688
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use embassy_sync::{blocking_mutex::raw::CriticalSectionRawMutex, watch::Watch};
use embassy_time::{Duration, Ticker, Timer};
#[cfg(feature = "telemetry")]
use hoshiguma_telemetry_protocol::payload::{observation::ObservationPayload, Payload};
use one_wire_bus::OneWire;
use one_wire_bus::{Address, OneWire};

pub(crate) type TemperatureReading = Result<f32, ()>;

Expand Down Expand Up @@ -57,8 +57,7 @@ pub(crate) async fn task(mut bus: OneWire<OutputOpenDrain<'static>>) {

let tx = TEMPERATURES_READ.sender();

let onboard_sensor =
ds18b20::Ds18b20::new::<()>(one_wire_bus::Address(77134400158196008)).unwrap();
let onboard_sensor = Ds18b20::new::<()>(Address(77134400158196008)).unwrap();

loop {
ds18b20::start_simultaneous_temp_measurement(&mut bus, &mut delay).unwrap();
Expand Down

0 comments on commit ee38688

Please sign in to comment.