修复:FSSI 刷新期间协调射频路径与 IQ 采集

This commit is contained in:
2026-08-28 13:26:58 +08:00
parent 33d8f4f428
commit bded7b6836
4 changed files with 25 additions and 5 deletions
+2
View File
@@ -370,6 +370,7 @@ static void *iq_spec_thr(void *arg)
}
/* a full window is 26.21 ms = 1.08 ATSC fields; print only a short burst every 30s */
#if IQ_ANALYSIS_UART_DEBUG
{
static time_t log_burst_start = 0;
static int log_burst_count = 0;
@@ -386,6 +387,7 @@ static void *iq_spec_thr(void *arg)
log_burst_count++;
}
}
#endif
if (npkt == IQ_NPKT && ++nraw >= IQ_RAW_EVERY) {
FILE *r = fopen("/tmp/iq_raw.bin", "wb"); /* whole contiguous window, for PC-side analysis */
if (r) { fwrite(iq_win[buf], 1, IQ_WBYTES, r); fclose(r); }