summaryrefslogtreecommitdiffstatshomepage
path: root/stm/i2c.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-26 20:15:40 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-26 20:15:40 +0000
commitc12b2213c16ba8839981c362c4d5f133a84b374b (patch)
tree59e3de4cce2ab28a9d4f73ba70477be98fb3c353 /stm/i2c.c
parent69b3ba0df38e276b55f8f76e7f5276723e6d3abe (diff)
downloadmicropython-c12b2213c16ba8839981c362c4d5f133a84b374b.tar.gz
micropython-c12b2213c16ba8839981c362c4d5f133a84b374b.zip
Change mp_method_t.name from const char * to qstr.
Addresses issue #377.
Diffstat (limited to 'stm/i2c.c')
-rw-r--r--stm/i2c.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/stm/i2c.c b/stm/i2c.c
index 33d9a43f3a..4d726c9593 100644
--- a/stm/i2c.c
+++ b/stm/i2c.c
@@ -326,12 +326,12 @@ static MP_DEFINE_CONST_FUN_OBJ_1(i2c_obj_readAndStop_obj, i2c_obj_readAndStop);
static MP_DEFINE_CONST_FUN_OBJ_1(i2c_obj_stop_obj, i2c_obj_stop);
static const mp_method_t i2c_methods[] = {
- { "start", &i2c_obj_start_obj },
- { "write", &i2c_obj_write_obj },
- { "read", &i2c_obj_read_obj },
- { "readAndStop", &i2c_obj_readAndStop_obj },
- { "stop", &i2c_obj_stop_obj },
- { NULL, NULL },
+ { MP_QSTR_start, &i2c_obj_start_obj },
+ { MP_QSTR_write, &i2c_obj_write_obj },
+ { MP_QSTR_read, &i2c_obj_read_obj },
+ { MP_QSTR_readAndStop, &i2c_obj_readAndStop_obj },
+ { MP_QSTR_stop, &i2c_obj_stop_obj },
+ { MP_QSTR_NULL, NULL },
};
static const mp_obj_type_t i2c_obj_type = {