Skip to content

Commit a03157b

Browse files
committed
drivers/saul/init_devs/auto_init_tmp117.c: change ARRAY_SIZE declaration for array size macro
1 parent 9a52738 commit a03157b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/saul/init_devs/auto_init_tmp117.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static saul_reg_t saul_entries[TMP117_NUM];
3939
/**
4040
* @brief Define the number of saul info
4141
*/
42-
#define TMP117_INFO_NUM ARRAY_SIZE(tmp117_saul_info)
42+
#define TMP117_INFO_NUM (unsigned)(sizeof((tmp117_saul_info)) / sizeof((tmp117_saul_info)[0]))
4343

4444
/**
4545
* @brief Reference the driver struct

0 commit comments

Comments
 (0)