summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/main.c')
-rw-r--r--stmhal/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/main.c b/stmhal/main.c
index 861e584d16..a25f3f69de 100644
--- a/stmhal/main.c
+++ b/stmhal/main.c
@@ -279,7 +279,7 @@ soft_reset:
MP_OBJ_NEW_SMALL_INT(115200),
};
pyb_uart_global_debug = pyb_uart_type.make_new((mp_obj_t)&pyb_uart_type,
- sizeof(args) / sizeof(args[0]),
+ ARRAY_SIZE(args),
0, args);
}
#else