From 2217baed750c508d619fc9bf51d53ce5dfc93c50 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Sat, 20 Jan 2024 21:03:15 +0800 Subject: [PATCH] update --- include/sys.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/sys.h b/include/sys.h index c2d9507..e76095c 100644 --- a/include/sys.h +++ b/include/sys.h @@ -31,4 +31,6 @@ void zsys_loop(); #define ZLOGI(...) NRF_LOG_INFO(__VA_ARGS__) #define ZLOGE(...) NRF_LOG_ERROR(__VA_ARGS__) #define ZLOGW(...) NRF_LOG_WARNING(__VA_ARGS__) -#define ZLOGD(...) NRF_LOG_DEBUG(__VA_ARGS__) \ No newline at end of file +#define ZLOGD(...) NRF_LOG_DEBUG(__VA_ARGS__) + +#define ZARRAY_SIZE(array) (sizeof(array) / sizeof(array[0])) \ No newline at end of file