From f67b0360262b9de5645622bdd0b3ab89130b74b7 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Mon, 4 Jul 2022 17:03:18 -0400 Subject: [PATCH] Update cubesatsim.ino --- cubesatsim/cubesatsim.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index a02b1439..f8e4c2a3 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -2021,7 +2021,7 @@ void pwm_interrupt_handler() { if (wav_position < (WAV_DATA_LENGTH<<3) - 1) { // set pwm level // allow the pwm value to repeat for 8 cycles this is >>3 - pwm_set_gpio_level(AUDIO_OUT_PIN, WAV_DATA[wav_position>>3]); + pwm_set_gpio_level(AUDIO_OUT_PIN, buffer[wav_position>>3]); wav_position++; } else { // reset to start