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:
parent
1e8f06b3a4
commit
2a0a36945c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user