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/sdcard.c | |
| parent | 69b3ba0df38e276b55f8f76e7f5276723e6d3abe (diff) | |
Change mp_method_t.name from const char * to qstr.
Addresses issue #377.
Diffstat (limited to 'stmhal/sdcard.c')
| -rw-r--r-- | stmhal/sdcard.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/stmhal/sdcard.c b/stmhal/sdcard.c index 20a481849..5392b0273 100644 --- a/stmhal/sdcard.c +++ b/stmhal/sdcard.c @@ -233,10 +233,10 @@ static mp_obj_t sd_read(mp_obj_t self, mp_obj_t block_num) { static MP_DEFINE_CONST_FUN_OBJ_2(sd_read_obj, sd_read); static const mp_method_t sdcard_methods[] = { - { "present", &sd_present_obj }, - { "power", &sd_power_obj }, - { "read", &sd_read_obj }, - { NULL, NULL }, + { MP_QSTR_present, &sd_present_obj }, + { MP_QSTR_power, &sd_power_obj }, + { MP_QSTR_read, &sd_read_obj }, + { MP_QSTR_NULL, NULL }, }; static const mp_obj_type_t sdcard_type = { |
