summaryrefslogtreecommitdiff
path: root/stm/usart.c
diff options
context:
space:
mode:
Diffstat (limited to 'stm/usart.c')
-rw-r--r--stm/usart.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/stm/usart.c b/stm/usart.c
index ac457b61f..41a53c2fe 100644
--- a/stm/usart.c
+++ b/stm/usart.c
@@ -236,11 +236,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 },
};
STATIC const mp_obj_type_t usart_obj_type = {