Skip to content

Commit

Permalink
Reset to idle state when stopped logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jrozb91 committed Jul 19, 2024
1 parent 0ad6872 commit 1000216
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion firmware/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,11 @@ int main(int argc, char *argv[])
acq_data = false;
mems_stop_fifo();
mems_fifo_running = false;
state = STATE_ACQSTOP;
if(acq_type == ACQ_LOG) {
state = STATE_IDLE;
nrf_drv_timer_enable(&TIMER_1S);
}
else { state = STATE_ACQSTOP; }
acq_data_ptr = 0;
sprintf(strbuf, "STAT=%d,%d,%d,%d,%d,%d,%d,%d",
temperature, battery, 0, data_out_count,
Expand Down

0 comments on commit 1000216

Please sign in to comment.