mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2025-12-06 03:31:59 +01:00
Size fixes:
accumerate_count not changed in sweep
This commit is contained in:
parent
4a44ecc37c
commit
4c8a476265
3
main.c
3
main.c
|
|
@ -830,7 +830,7 @@ static const I2SConfig i2sconfig = {
|
|||
0 // i2spr
|
||||
};
|
||||
|
||||
#define DSP_START(delay) {accumerate_count = bandwidth_accumerate_count[bandwidth]; wait_count = delay-1 + accumerate_count;}
|
||||
#define DSP_START(delay) {wait_count = delay-1 + accumerate_count;}
|
||||
#define DSP_WAIT_READY while (wait_count) {if (operation_requested && break_on_operation) return false; __WFI();}
|
||||
#define DSP_WAIT while (wait_count) {__WFI();}
|
||||
#define RESET_SWEEP {p_sweep = 0;}
|
||||
|
|
@ -841,6 +841,7 @@ bool sweep(bool break_on_operation)
|
|||
{
|
||||
int delay=1;
|
||||
if (p_sweep>=sweep_points || break_on_operation == false) RESET_SWEEP;
|
||||
accumerate_count = bandwidth_accumerate_count[bandwidth];
|
||||
// blink LED while scanning
|
||||
palClearPad(GPIOC, GPIOC_LED);
|
||||
// Power stabilization after LED off, also align timings on i == 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue