Compare commits

..

No commits in common. "4cdead5aa45691e2730ed0a8424f9d98676e1dd8" and "1842419f102e0e974e83faa567d6c00dd80afbbc" have entirely different histories.

3 changed files with 4 additions and 3 deletions

View file

@ -64,7 +64,6 @@ impl Config {
Self::default()
})
}
}
impl Default for Config {

View file

@ -248,7 +248,9 @@ async fn main() {
let state = sync_state.lock().unwrap();
let config = sync_config.lock().unwrap();
if config.auto_sync_enabled && state.latest.is_some() {
if config.is_auto_sync_paused() {
log::info!("Auto-sync is temporarily paused.");
} else if config.auto_sync_enabled && state.latest.is_some() {
let delta = state.get_ewma_clock_delta();
let frame = state.latest.as_ref().unwrap();

View file

@ -1,6 +1,6 @@
use crate::config::Config;
use crate::sync_logic::LtcFrame;
use chrono::{DateTime, Duration as ChronoDuration, Local, TimeZone};
use chrono::{DateTime, Duration as ChronoDuration, Local, NaiveTime, TimeZone};
use num_rational::Ratio;
use std::process::Command;