1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 04:52:59 +01:00

core: make use of ARRAY_SIZE macro

This commit is contained in:
Kees Bakker 2019-07-22 23:13:28 +02:00 committed by Benjamin Valentin
parent 1e8f06b3a4
commit 2a0a36945c

View File

@ -65,7 +65,7 @@ static uint32_t runqueue_bitcache = 0;
#endif
FORCE_USED_SECTION
const uint8_t max_threads = sizeof(sched_threads) / sizeof(thread_t*);
const uint8_t max_threads = ARRAY_SIZE(sched_threads);
#ifdef DEVELHELP
/* OpenOCD can't determine struct offsets and additionally this member is only