Skip to content

Commit

Permalink
fix: update display in pause
Browse files Browse the repository at this point in the history
  • Loading branch information
edy555 committed Sep 29, 2019
1 parent 0aeadaa commit ea1c742
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,8 @@ static THD_FUNCTION(Thread1, arg)

chMtxLock(&mutex);
ui_process();
chMtxUnlock(&mutex);

if (sweep_enabled) {
chMtxLock(&mutex);
if (vbat != -1) {
adc_stop(ADC1);
vbat = adc_vbat_read(ADC1);
Expand All @@ -90,12 +88,11 @@ static THD_FUNCTION(Thread1, arg)
plot_into_index(measured);
redraw_request |= REDRAW_CELLS;
}

/* plot trace and other indications as raster */
draw_all(completed); // flush markmap only if scan completed to prevent remaining traces

chMtxUnlock(&mutex);
}

/* plot trace and other indications as raster */
draw_all(completed); // flush markmap only if scan completed to prevent remaining traces
chMtxUnlock(&mutex);
}
}

Expand Down

0 comments on commit ea1c742

Please sign in to comment.