From 1e127e1ba820c41f20091fb1ab366958e48610a0 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Tue, 23 Jun 2020 19:24:38 +0200 Subject: [PATCH] tests/periph_timer_periodic: use TIMER_CHANNEL_NUMOF --- tests/periph_timer_periodic/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/periph_timer_periodic/main.c b/tests/periph_timer_periodic/main.c index 5aeaee17cb..cab5fba69a 100644 --- a/tests/periph_timer_periodic/main.c +++ b/tests/periph_timer_periodic/main.c @@ -41,7 +41,7 @@ #define CYCLE_MS 100UL #define CYCLES_MAX 10 -static unsigned count[TIMER_CHANNELS]; +static unsigned count[TIMER_CHANNEL_NUMOF]; static void cb(void *arg, int chan) { @@ -93,7 +93,7 @@ int main(void) puts("\nCycles:"); bool succeeded = true; - for (unsigned i = 0; i < TIMER_CHANNELS; ++i) { + for (unsigned i = 0; i < TIMER_CHANNEL_NUMOF; ++i) { printf("channel %u = %02u\t[%s]\n", i, count[i], _print_ok(i, &succeeded)); }