Fix I2SOut message, fix #1765

This commit is contained in:
Carlos 2019-04-09 12:49:17 -05:00 committed by Scott Shawcroft
parent bfbe9323ee
commit 9f63125345
No known key found for this signature in database
GPG Key ID: FD0EDC4B6C53CA59

View File

@ -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"));