From 5ec1893238d689f08ca24d7b67a63a00f13f0288 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Wed, 30 Apr 2025 20:00:53 +0200 Subject: [PATCH] vscode is useless, better off with nano --- dsp/bs412.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dsp/bs412.c b/dsp/bs412.c index 1f17f02..8f52c67 100644 --- a/dsp/bs412.c +++ b/dsp/bs412.c @@ -22,12 +22,12 @@ float measure_mpx(MPXPowerMeasurement* mpx, float deviation) { float modulation_power = deviation_to_dbr(avg_deviation); #ifdef BS412_DEBUG - if(mpx->i % mpx->sample_rate == 0) { + if(mpx->sample_counter % mpx->sample_rate == 0) { debug_printf("MPX power: %f dBr\n", modulation_power); } #endif - if (mpx->i >= mpx->sample_rate * 60) { + if (mpx->sample_counter >= mpx->sample_rate * 60) { #ifdef BS412_DEBUG debug_printf("Resetting MPX power measurement\n"); #endif