diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2018-12-03 09:44:52 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-03 09:44:52 -0800 |
| commit | b3575180e1e350eb0a8c04c71ea549783268a992 (patch) | |
| tree | deab854ac9b0a4803d18c0c18adfbd7b06f0a0e7 | |
| parent | 7a52712b381585948806af888f0d7eb83d679c54 (diff) | |
| parent | 72e3cfdfb8ade31ad6e4350027fe2a525e6e5a92 (diff) | |
Merge pull request #1373 from dhalbert/audio-quiescent-value-int
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); |
