[audiobusio-I2SOut] Fix translation error

This commit is contained in:
Carlos 2019-04-15 22:22:38 -05:00 committed by Scott Shawcroft
parent 65cc366280
commit 5865b28592
No known key found for this signature in database
GPG Key ID: FD0EDC4B6C53CA59
1 changed files with 2 additions and 2 deletions

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_varg(translate("Invalid %q pin", MP_QSTR_bit_clock)); mp_raise_ValueError_varg(translate("Invalid %q pin"), MP_QSTR_bit_clock);
} }
if (ws_clock_unit == 0xff) { if (ws_clock_unit == 0xff) {
mp_raise_ValueError_varg(translate("Invalid %q pin", MP_QSTR_ws_clock)); mp_raise_ValueError_varg(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"));