Reuse ARRAYLEN() from common.h

This commit is contained in:
Rodrigo Arias 2023-02-23 19:32:39 +01:00 committed by Rodrigo Arias Mallo
parent d432595c7d
commit 53c10aab2d

View File

@ -27,7 +27,6 @@ const char *pcf_def_header =
"THREAD_FUNC State As Is\n"; "THREAD_FUNC State As Is\n";
#define RGB(r, g, b) (r<<16 | g<<8 | b) #define RGB(r, g, b) (r<<16 | g<<8 | b)
#define ARRAY_LEN(x) (sizeof(x) / sizeof((x)[0]))
/* Define colors for the trace */ /* Define colors for the trace */
#define DEEPBLUE RGB( 0, 0, 255) #define DEEPBLUE RGB( 0, 0, 255)
@ -66,7 +65,7 @@ const uint32_t pcf_def_palette[] = {
}; };
const uint32_t *pcf_palette = pcf_def_palette; const uint32_t *pcf_palette = pcf_def_palette;
const int pcf_palette_len = ARRAY_LEN(pcf_def_palette); const int pcf_palette_len = ARRAYLEN(pcf_def_palette);
/* clang-format on */ /* clang-format on */