Compare commits

..

2 commits

Author SHA1 Message Date
Brent Schroeter
5b58040975 move time zone selection to config.rs 2025-09-06 12:59:55 -07:00
Brent Schroeter
1970d37d51 refactor setup tasks 2025-09-06 12:59:55 -07:00
2 changed files with 2 additions and 2 deletions

View file

@ -33,7 +33,7 @@ fn main() -> Result<()> {
ntp: _ntp,
mut switch_driver,
wifi: _wifi,
} = setup()?;
} = *setup()?;
let t_on = NaiveTime::parse_from_str(config::T_ON, "%H:%M")?;
let t_off = NaiveTime::parse_from_str(config::T_OFF, "%H:%M")?;

View file

@ -1,5 +1,5 @@
use esp_idf_svc::{
hal::delay::FreRtos,
hal::delay::FreeRtos,
sntp::{EspSntp, SyncStatus},
};
use log::info;