Merge pull request #8466 from heygauri/fix-i2s-error-message
Refine error message for rp2040 audiobusio I2S object creation
This commit is contained in:
commit
a4b8afb54f
|
@ -628,7 +628,7 @@ msgid "Below minimum frame rate"
|
|||
msgstr ""
|
||||
|
||||
#: ports/raspberrypi/common-hal/audiobusio/I2SOut.c
|
||||
msgid "Bit clock and word select must be sequential pins"
|
||||
msgid "Bit clock and word select must be sequential GPIO pins"
|
||||
msgstr ""
|
||||
|
||||
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
|
||||
|
@ -1100,8 +1100,6 @@ msgstr ""
|
|||
msgid "Generic Failure"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
#: shared-module/displayio/Display.c
|
||||
#: shared-module/framebufferio/FramebufferDisplay.c
|
||||
|
|
|
@ -108,7 +108,7 @@ void common_hal_audiobusio_i2sout_construct(audiobusio_i2sout_obj_t *self,
|
|||
mp_raise_NotImplementedError_varg(translate("%q"), MP_QSTR_main_clock);
|
||||
}
|
||||
if (bit_clock->number != word_select->number - 1) {
|
||||
mp_raise_ValueError(translate("Bit clock and word select must be sequential pins"));
|
||||
mp_raise_ValueError(translate("Bit clock and word select must be sequential GPIO pins"));
|
||||
}
|
||||
|
||||
const uint16_t *program = i2s_program;
|
||||
|
|
Loading…
Reference in New Issue