1 Commits

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

2
Cargo.lock generated
View File

@@ -13,7 +13,7 @@ dependencies = [
[[package]]
name = "air_filter"
version = "0.4.1"
version = "0.4.0"
dependencies = [
"bme280",
"cfg-if",

View File

@@ -1,6 +1,6 @@
[package]
name = "air_filter"
version = "0.4.1"
version = "0.4.0"
edition = "2021"
[dependencies]

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