From 3f89cc151bdc7cd8766aa8034085d2dbd4f3d4be Mon Sep 17 00:00:00 2001 From: root Date: Mon, 9 Dec 2024 21:06:52 +0000 Subject: [PATCH] fix issue with sequence stepper --- src/lib/rp-daq-lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/rp-daq-lib.c b/src/lib/rp-daq-lib.c index 5393cac2..d84335f0 100644 --- a/src/lib/rp-daq-lib.c +++ b/src/lib/rp-daq-lib.c @@ -784,11 +784,11 @@ int setPDMAllValuesVolt(float voltage, int channel) { int getSamplesPerStep() { int32_t value = *((int32_t *)(cfg + 4)); - return value*2/getDecimation(); + return value/getDecimation(); } int setSamplesPerStep(int samples) { - *((int32_t *)(cfg + 4)) = samples/2*getDecimation(); + *((int32_t *)(cfg + 4)) = samples*getDecimation(); return 0; }