adjustments

This commit is contained in:
2023-12-04 00:41:29 +01:00
parent 4a8fffb3cc
commit f0f0e9f27e
2 changed files with 23 additions and 9 deletions

View File

@@ -1,3 +1,5 @@
use std::{fs::File, io::Write};
use chrono::{Datelike, Timelike, NaiveDateTime};
use chrono_tz::Europe::Berlin;
@@ -50,6 +52,9 @@ fn main() -> Result<()>{
println!("cur is {}", cur);
//continous/interrupt?
//check if boot button is pressed, if longer than 5s delete config and reboot into config mode
@@ -57,12 +62,14 @@ fn main() -> Result<()>{
let config = board.get_config();
match config {
Ok(conf) => {
},
Err(err) => {
},
Err(err) => todo!(),
}
let proceed = config.unwrap();
// let proceed = config.unwrap();
//check if we have a config file
// if not found or parsing error -> error very fast blink general fault
@@ -72,9 +79,9 @@ fn main() -> Result<()>{
//blink general fault error_no_config_after_upgrade
//once config is set store it and reboot
if proceed.tank_sensor_enabled() {
//if proceed.tank_sensor_enabled() {
}
//}
//is tank sensor enabled in config?
//measure tank level (without wifi due to interference)
//TODO this should be a result// detect invalid measurement value