diff options
| author | Damien George | 2014-04-26 10:47:29 +0100 |
|---|---|---|
| committer | Damien George | 2014-04-26 10:47:29 +0100 |
| commit | 6d3c5e4301df363055dc256e6692c610e4d0b918 (patch) | |
| tree | a07a18ed1a13d50990cf0e43a2a3c919cb14240d /stmhal/main.c | |
| parent | d139c489bab6b58906868e3fc8383ea813a122d4 (diff) | |
Add ARRAY_SIZE macro, and use it where possible.
Diffstat (limited to 'stmhal/main.c')
| -rw-r--r-- | stmhal/main.c | 2 |
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 |
