@ -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,
});
if enabled {
let _ = DataRecords::push(program_state.clone());