fix some calls that needed to be _varg
This commit is contained in:
parent
8b05d11538
commit
975c981e4f
|
@ -97,7 +97,7 @@
|
|||
//| ...
|
||||
STATIC mp_obj_t audiobusio_i2sout_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *all_args) {
|
||||
#if !CIRCUITPY_AUDIOBUSIO_I2SOUT
|
||||
mp_raise_NotImplementedError(translate("%q"), MP_QSTR_I2SOut);
|
||||
mp_raise_NotImplementedError_varg(translate("%q"), MP_QSTR_I2SOut);
|
||||
return NULL; // Not reachable.
|
||||
#else
|
||||
enum { ARG_bit_clock, ARG_word_select, ARG_data, ARG_left_justified };
|
||||
|
|
|
@ -94,7 +94,7 @@
|
|||
//| ...
|
||||
STATIC mp_obj_t audiobusio_pdmin_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *all_args) {
|
||||
#if !CIRCUITPY_AUDIOBUSIO_PDMIN
|
||||
mp_raise_NotImplementedError(translate("%q"), MP_QSTR_PDMIn);
|
||||
mp_raise_NotImplementedError_varg(translate("%q"), MP_QSTR_PDMIn);
|
||||
#else
|
||||
enum { ARG_clock_pin, ARG_data_pin, ARG_sample_rate, ARG_bit_depth, ARG_mono, ARG_oversample, ARG_startup_delay };
|
||||
static const mp_arg_t allowed_args[] = {
|
||||
|
|
Loading…
Reference in New Issue