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/usart.c | |
| parent | 69b3ba0df38e276b55f8f76e7f5276723e6d3abe (diff) | |
Change mp_method_t.name from const char * to qstr.
Addresses issue #377.
Diffstat (limited to 'stmhal/usart.c')
| -rw-r--r-- | stmhal/usart.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/stmhal/usart.c b/stmhal/usart.c index 31308c22a..d3a54f9d8 100644 --- a/stmhal/usart.c +++ b/stmhal/usart.c @@ -210,11 +210,11 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_2(usart_obj_tx_char_obj, usart_obj_tx_char); STATIC MP_DEFINE_CONST_FUN_OBJ_2(usart_obj_tx_str_obj, usart_obj_tx_str); STATIC const mp_method_t usart_methods[] = { - { "status", &usart_obj_status_obj }, - { "recv_chr", &usart_obj_rx_char_obj }, - { "send_chr", &usart_obj_tx_char_obj }, - { "send", &usart_obj_tx_str_obj }, - { NULL, NULL }, + { MP_QSTR_status, &usart_obj_status_obj }, + { MP_QSTR_recv_chr, &usart_obj_rx_char_obj }, + { MP_QSTR_send_chr, &usart_obj_tx_char_obj }, + { MP_QSTR_send, &usart_obj_tx_str_obj }, + { MP_QSTR_NULL, NULL }, }; const mp_obj_type_t pyb_usart_type = { |
