mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2025-12-06 03:31:59 +01:00
fixed: freeze device by clicking pause
This commit is contained in:
parent
4e2036ba36
commit
064477291a
6
main.c
6
main.c
|
|
@ -72,10 +72,12 @@ static THD_FUNCTION(Thread1, arg)
|
||||||
__WFI();
|
__WFI();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
chMtxLock(&mutex);
|
||||||
|
ui_process();
|
||||||
|
chMtxUnlock(&mutex);
|
||||||
|
|
||||||
if (sweep_enabled) {
|
if (sweep_enabled) {
|
||||||
chMtxLock(&mutex);
|
chMtxLock(&mutex);
|
||||||
ui_process();
|
|
||||||
|
|
||||||
if (vbat != -1) {
|
if (vbat != -1) {
|
||||||
adc_stop(ADC1);
|
adc_stop(ADC1);
|
||||||
vbat = adc_vbat_read(ADC1);
|
vbat = adc_vbat_read(ADC1);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue