From c6bea7d0e7e72c32bd7643a020d6c818cd0f9305 Mon Sep 17 00:00:00 2001 From: Josef Lusticky Date: Wed, 26 Nov 2014 22:47:50 +0100 Subject: [PATCH] avr: fix divide when CLOCK_SECOND is not a power of two --- cpu/avr/dev/clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/avr/dev/clock.c b/cpu/avr/dev/clock.c index cc50364ec..7fcc72063 100644 --- a/cpu/avr/dev/clock.c +++ b/cpu/avr/dev/clock.c @@ -72,7 +72,7 @@ #include /* Two tick counters avoid a software divide when CLOCK_SECOND is not a power of two. */ -#if CLOCK_SECOND && (CLOCK_SECOND - 1) +#if CLOCK_SECOND & (CLOCK_SECOND - 1) #define TWO_COUNTERS 1 #endif