diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-13 19:50:05 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-13 19:50:05 +0000 |
commit | f62d33aa1dc5afad9abbaf257531bdc4b0fbfdc0 (patch) | |
tree | c512ba2f387febe7fa57c2e1bf52b6250d579e73 /stm/audio.c | |
parent | f88a72a88e78ce1cfbd25f0cbf1fbff5e6fd43cb (diff) | |
download | micropython-f62d33aa1dc5afad9abbaf257531bdc4b0fbfdc0.tar.gz micropython-f62d33aa1dc5afad9abbaf257531bdc4b0fbfdc0.zip |
Consolidate rt_make_function_[0123] to rt_make_function_n.
Diffstat (limited to 'stm/audio.c')
-rw-r--r-- | stm/audio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stm/audio.c b/stm/audio.c index 34adefbcd6..e2aa32b9fc 100644 --- a/stm/audio.c +++ b/stm/audio.c @@ -91,8 +91,8 @@ void audio_init(void) { // Python interface mp_obj_t m = mp_obj_new_module(qstr_from_str_static("audio")); - rt_store_attr(m, qstr_from_str_static("dac"), rt_make_function_1(pyb_audio_dac)); - rt_store_attr(m, qstr_from_str_static("is_full"), rt_make_function_0(pyb_audio_is_full)); - rt_store_attr(m, qstr_from_str_static("fill"), rt_make_function_1(pyb_audio_fill)); + rt_store_attr(m, qstr_from_str_static("dac"), rt_make_function_n(1, pyb_audio_dac)); + rt_store_attr(m, qstr_from_str_static("is_full"), rt_make_function_n(0, pyb_audio_is_full)); + rt_store_attr(m, qstr_from_str_static("fill"), rt_make_function_n(1, pyb_audio_fill)); rt_store_name(qstr_from_str_static("audio"), m); } |