fixed: freeze device by clicking pause

pull/58/head 0.2.1
TT 6 years ago
parent 4e2036ba36
commit 064477291a

@ -72,10 +72,12 @@ static THD_FUNCTION(Thread1, arg)
__WFI();
}
if (sweep_enabled) {
chMtxLock(&mutex);
ui_process();
chMtxUnlock(&mutex);
if (sweep_enabled) {
chMtxLock(&mutex);
if (vbat != -1) {
adc_stop(ADC1);
vbat = adc_vbat_read(ADC1);

Loading…
Cancel
Save

Powered by TurnKey Linux.