Nareshkumar Rao 7 months ago
parent
commit
de6b9cf153
  1. 2
      src/control/data_logging.rs

2
src/control/data_logging.rs

@ -42,6 +42,7 @@ impl DataRecords {
}
pub async fn data_logging_loop(program_state: ProgramStateShared) {
loop {
let DataLoggingSettings {
enabled,
frequency_mins,
@ -51,7 +52,6 @@ pub async fn data_logging_loop(program_state: ProgramStateShared) {
enabled: true,
frequency_mins: 60,
});
loop {
if enabled {
let _ = DataRecords::push(program_state.clone());
}

Loading…
Cancel
Save