From 5bf32237e2c1cc2339bd5238167a57d7c3dec50b Mon Sep 17 00:00:00 2001 From: Simon Fondrie-Teitler Date: Sat, 20 Jan 2024 12:07:04 -0500 Subject: [PATCH] update base cargo resolve version --- Cargo.toml | 2 +- meatweb/src/bluetooth.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ce456f1..d570931 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,2 +1,2 @@ -workspace = { members = [ "meateatrs","meatnet", "meatweb"] } +workspace = { members = [ "meateatrs","meatnet", "meatweb"], resolver = "2"} diff --git a/meatweb/src/bluetooth.rs b/meatweb/src/bluetooth.rs index 82f033a..4725dab 100644 --- a/meatweb/src/bluetooth.rs +++ b/meatweb/src/bluetooth.rs @@ -76,7 +76,7 @@ pub fn process_bluetooth_event( RequestMessage::SyncThermometerList(_) => {} RequestMessage::ProbeStatusMessage(m) => { if m.status.mode == Mode::Normal { - set_temperature(ConnectionState::Connected(CurrentState { + set_temperature.set(ConnectionState::Connected(CurrentState { core_temperature: *m.status.get_core_temperature(), surface_temperature: *m.status.get_surface_temperature(), ambient_temperature: *m.status.get_ambient_temperature(), @@ -172,7 +172,7 @@ pub async fn get_service( disconnected_func.forget(); - set_temperature(ConnectionState::Connecting); + set_temperature.set(ConnectionState::Connecting); let gatt = device.gatt().unwrap();