summaryrefslogtreecommitdiffstatshomepage
path: root/stm/audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'stm/audio.c')
-rw-r--r--stm/audio.c6
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);
}