nanovna-v2 / NanoVNA2-firmware

Firmware for NanoVNA V2
https://nanorfe.com/nanovna-v2.html
217 stars 85 forks source link

Adf4350 powerdown fix #16

Closed wutje closed 4 years ago

wutje commented 4 years ago

I had this fixed on the original pull request but only a few hours AFTER the branch was merged. Sorry about that. The problem we are fixing here is that we are powering down the ADF4350 from the "main" thread, while the "ADC" thread actually "owns" the ADF4350; aka there is change the ADC thread interrupts the powerdown sequence. and thus leaving the ADF4350 in a unknown state. It probably does not cause any trouble since the sweep is not using the ADF4350 anymore. When ADF4350 is used again the device is properly configured again.