1 Commits

Author SHA1 Message Date
329eb6db04 Bump version 2025-01-11 05:23:33 +01:00
4 changed files with 4 additions and 32 deletions

5
Cargo.lock generated
View File

@@ -13,7 +13,7 @@ dependencies = [
[[package]]
name = "air_filter"
version = "0.4.2"
version = "0.4.0"
dependencies = [
"bme280",
"cfg-if",
@@ -1889,8 +1889,7 @@ checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
[[package]]
name = "updater"
version = "0.2.0"
source = "git+https://git.huizinga.dev/Dreaded_X/iot_tools?tag=v0.2.0#ce96dd0a4ef3cffe1c6be6786b0a47cdb412f861"
version = "0.1.0"
dependencies = [
"cortex-m",
"defmt",

View File

@@ -1,6 +1,6 @@
[package]
name = "air_filter"
version = "0.4.2"
version = "0.4.0"
edition = "2021"
[dependencies]
@@ -67,7 +67,7 @@ nourl = { version = "0.1", features = ["defmt"] }
smoltcp = { version = "0.12", default-features = false, features = [
"dns-max-server-count-4",
] }
updater = { git = "https://git.huizinga.dev/Dreaded_X/iot_tools", tag = "v0.2.0" }
updater = { version = "0.1.0", path = "../iot_tools/updater" }
portable-atomic = { version = "1.6", features = ["critical-section"] }
bme280 = { version = "0.5.0", features = ["async", "defmt"] }
picoserve = { version = "0.13.3", features = ["defmt", "embassy"] }

View File

@@ -26,14 +26,6 @@ impl FanState {
pub fn new(speed: FanSpeed, manual: bool) -> Self {
Self { speed, manual }
}
pub fn speed(&self) -> FanSpeed {
self.speed
}
pub fn manual(&self) -> bool {
self.manual
}
}
#[derive(Deserialize)]
@@ -42,10 +34,6 @@ pub struct SetFanSpeed {
}
impl SetFanSpeed {
pub fn new(speed: FanSpeed) -> Self {
Self { speed }
}
pub fn speed(&self) -> FanSpeed {
self.speed
}
@@ -66,16 +54,4 @@ impl SensorData {
pressure: measurements.pressure,
}
}
pub fn temperature(&self) -> f32 {
self.temperature
}
pub fn humidity(&self) -> f32 {
self.humidity
}
pub fn pressure(&self) -> f32 {
self.pressure
}
}

View File

@@ -1,3 +0,0 @@
#!/bin/bash
curl -X PUT --data-binary "@./target/firmware/firmware+signed" airfilter.lan.huizinga.dev/firmware/update