avr: fix divide when CLOCK_SECOND is not a power of two

This commit is contained in:
Josef Lusticky 2014-11-26 22:47:50 +01:00
parent ce49276e80
commit c6bea7d0e7

View file

@ -72,7 +72,7 @@
#include <avr/interrupt.h>
/* 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