diff options
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 = { |
