kopia lustrzana https://github.com/raspberrypi/pico-extras
fix copypaste error checking GPIO pin numbers
rodzic
1a54cbbad5
commit
4b8dd75e1c
|
@ -54,7 +54,7 @@ const audio_format_t *audio_i2s_setup(const audio_format_t *intended_audio_forma
|
|||
|
||||
#if PICO_PIO_USE_GPIO_BASE
|
||||
if(config->data_pin >= 32 || config->clock_pin_base + 1 >= 32) {
|
||||
assert(config->data_pin >= 16 && config->clock_pin_base + 1 >= 16);
|
||||
assert(config->data_pin >= 16 && config->clock_pin_base >= 16);
|
||||
pio_set_gpio_base(audio_pio, 16);
|
||||
}
|
||||
#endif
|
||||
|
|
Ładowanie…
Reference in New Issue