mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2026-04-21 06:14:05 +00:00
fixed: freeze device by clicking pause
This commit is contained in:
parent
4e2036ba36
commit
064477291a
1 changed files with 4 additions and 2 deletions
6
main.c
6
main.c
|
|
@ -72,10 +72,12 @@ static THD_FUNCTION(Thread1, arg)
|
|||
__WFI();
|
||||
}
|
||||
|
||||
chMtxLock(&mutex);
|
||||
ui_process();
|
||||
chMtxUnlock(&mutex);
|
||||
|
||||
if (sweep_enabled) {
|
||||
chMtxLock(&mutex);
|
||||
ui_process();
|
||||
|
||||
if (vbat != -1) {
|
||||
adc_stop(ADC1);
|
||||
vbat = adc_vbat_read(ADC1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue