Skip to content

Commit

Permalink
fix issue with sequence stepper
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Dec 9, 2024
1 parent fa4ceb3 commit 3f89cc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/rp-daq-lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3f89cc1

Please sign in to comment.