diff options
author | Damien George <damien.p.george@gmail.com> | 2014-03-26 20:15:40 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-03-26 20:15:40 +0000 |
commit | c12b2213c16ba8839981c362c4d5f133a84b374b (patch) | |
tree | 59e3de4cce2ab28a9d4f73ba70477be98fb3c353 /stmhal/dac.c | |
parent | 69b3ba0df38e276b55f8f76e7f5276723e6d3abe (diff) | |
download | micropython-c12b2213c16ba8839981c362c4d5f133a84b374b.tar.gz micropython-c12b2213c16ba8839981c362c4d5f133a84b374b.zip |
Change mp_method_t.name from const char * to qstr.
Addresses issue #377.
Diffstat (limited to 'stmhal/dac.c')
-rw-r--r-- | stmhal/dac.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/stmhal/dac.c b/stmhal/dac.c index 3814039ccd..bc86e07bdf 100644 --- a/stmhal/dac.c +++ b/stmhal/dac.c @@ -261,14 +261,14 @@ mp_obj_t pyb_dac_dma(uint n_args, const mp_obj_t *args, mp_map_t *kw_args) { STATIC MP_DEFINE_CONST_FUN_OBJ_KW(pyb_dac_dma_obj, 3, pyb_dac_dma); STATIC const mp_method_t pyb_dac_methods[] = { - { "noise", &pyb_dac_noise_obj }, - { "triangle", &pyb_dac_triangle_obj }, - { "write", &pyb_dac_write_obj }, - { "dma", &pyb_dac_dma_obj }, + { MP_QSTR_noise, &pyb_dac_noise_obj }, + { MP_QSTR_triangle, &pyb_dac_triangle_obj }, + { MP_QSTR_write, &pyb_dac_write_obj }, + { MP_QSTR_dma, &pyb_dac_dma_obj }, // TODO add function that does double buffering: // dma2(freq, buf1, buf2, callback) // where callback is called when the buffer has been drained - { NULL, NULL }, + { MP_QSTR_NULL, NULL }, }; const mp_obj_type_t pyb_dac_type = { |