diff options
| author | Dan Halbert <halbert@halwitz.org> | 2018-12-03 11:20:33 -0500 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2018-12-03 11:20:33 -0500 |
| commit | 72e3cfdfb8ade31ad6e4350027fe2a525e6e5a92 (patch) | |
| tree | deab854ac9b0a4803d18c0c18adfbd7b06f0a0e7 | |
| parent | 7a52712b381585948806af888f0d7eb83d679c54 (diff) | |
Fix arg type for AudioOut(..., quiescent_value=...)
| -rw-r--r-- | shared-bindings/audioio/AudioOut.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-bindings/audioio/AudioOut.c b/shared-bindings/audioio/AudioOut.c index 18d908eef..94340d62c 100644 --- a/shared-bindings/audioio/AudioOut.c +++ b/shared-bindings/audioio/AudioOut.c @@ -101,7 +101,7 @@ STATIC mp_obj_t audioio_audioout_make_new(const mp_obj_type_t *type, size_t n_ar static const mp_arg_t allowed_args[] = { { MP_QSTR_left_channel, MP_ARG_OBJ | MP_ARG_REQUIRED }, { MP_QSTR_right_channel, MP_ARG_OBJ | MP_ARG_KW_ONLY, {.u_rom_obj = mp_const_none} }, - { MP_QSTR_quiescent_value, MP_ARG_OBJ | MP_ARG_KW_ONLY, {.u_int = 0x8000} }, + { MP_QSTR_quiescent_value, MP_ARG_INT | MP_ARG_KW_ONLY, {.u_int = 0x8000} }, }; mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)]; mp_arg_parse_all(n_args, pos_args, &kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args); |
