Update cubesatsim.ino

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

@ -1984,7 +1984,7 @@ void start_pwm() {
set_sys_clock_khz(125000, true);
gpio_set_function(AUDIO_OUT_PIN, GPIO_FUNC_PWM);
int audio_pin_slice = pwm_gpio_to_slice_num(AUDIO_PIN);
int audio_pin_slice = pwm_gpio_to_slice_num(AUDIO_OUT_PIN);
// Setup PWM interrupt to fire when PWM cycle is complete
pwm_clear_irq(audio_pin_slice);

Loading…
Cancel
Save

Powered by TurnKey Linux.