aboutsummaryrefslogtreecommitdiff
path: root/stmhal/main.c
diff options
context:
space:
mode:
authorDamien George2014-04-26 10:47:29 +0100
committerDamien George2014-04-26 10:47:29 +0100
commit6d3c5e4301df363055dc256e6692c610e4d0b918 (patch)
treea07a18ed1a13d50990cf0e43a2a3c919cb14240d /stmhal/main.c
parentd139c489bab6b58906868e3fc8383ea813a122d4 (diff)
Add ARRAY_SIZE macro, and use it where possible.
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 861e584d1..a25f3f69d 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