wav_position modulo instead of - length

pull/207/head
alanbjohnston 3 years ago committed by GitHub
parent 1f475ffc19
commit 2ae7b3067b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3484,7 +3484,7 @@ bool TimerHandler0(struct repeating_timer *t) {
pwm_set_gpio_level(BPSK_PWM_PIN, (config.top + 1) * 0.5);
*/
if (wav_position > bufLen) { // 300) {
wav_position = wav_position - bufLen;
wav_position = wav_position % bufLen;
// Serial.print("\nR");
// Serial.print(" ");
// Serial.println(millis());

Loading…
Cancel
Save

Powered by TurnKey Linux.