Update cubesatsim.ino

pull/154/head
alanbjohnston 4 years ago committed by GitHub
parent 9c804a5f89
commit f67b036026
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save

Powered by TurnKey Linux.