summaryrefslogtreecommitdiff
path: root/stmhal/sdcard.c
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/sdcard.c')
-rw-r--r--stmhal/sdcard.c8
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 = {