mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 11:10:14 +01:00
ports: Convert legacy uppercase macro names to lowercase.
This commit is contained in:
@@ -350,7 +350,7 @@ STATIC mp_obj_t pyb_uart_make_new(const mp_obj_type_t *type, size_t n_args, size
|
||||
|
||||
// work out port
|
||||
int uart_id = 0;
|
||||
if (MP_OBJ_IS_STR(args[0])) {
|
||||
if (mp_obj_is_str(args[0])) {
|
||||
const char *port = mp_obj_str_get_str(args[0]);
|
||||
if (0) {
|
||||
#ifdef MICROPY_HW_UART1_NAME
|
||||
|
||||
Reference in New Issue
Block a user