Fix I2SOut message, fix #1765
This commit is contained in:
parent
bfbe9323ee
commit
9f63125345
@ -144,10 +144,10 @@ void common_hal_audiobusio_i2sout_construct(audiobusio_i2sout_obj_t* self,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (bc_clock_unit == 0xff) {
|
if (bc_clock_unit == 0xff) {
|
||||||
mp_raise_ValueError(translate("Invalid bit clock pin"));
|
mp_raise_ValueError(translate("Invalid %q pin", MP_QSTR_bit_clock));
|
||||||
}
|
}
|
||||||
if (ws_clock_unit == 0xff) {
|
if (ws_clock_unit == 0xff) {
|
||||||
mp_raise_ValueError(translate("Invalid bit clock pin"));
|
mp_raise_ValueError(translate("Invalid %q pin", MP_QSTR_ws_clock));
|
||||||
}
|
}
|
||||||
if (bc_clock_unit != ws_clock_unit) {
|
if (bc_clock_unit != ws_clock_unit) {
|
||||||
mp_raise_ValueError(translate("Bit clock and word select must share a clock unit"));
|
mp_raise_ValueError(translate("Bit clock and word select must share a clock unit"));
|
||||||
|
Loading…
Reference in New Issue
Block a user