fixed arduino timer issue

This commit is contained in:
Ziver Koc 2018-12-03 22:28:05 +01:00
parent c1c923a2fc
commit 8526e5157d
2 changed files with 15 additions and 5 deletions

View file

@ -10,6 +10,15 @@ the data to a central location.
#include "Interrupt.h"
#ifndef POWERCON_ENABLED
#define POWER_TIMER_MULTIPLIER 1
#endif
#ifndef TEMPERATURE_ENABLED
#define TEMPERATURE_TIMER_MULTIPLIER 1
#endif
#ifndef LIGHT_ENABLED
#define LIGHT_TIMER_MULTIPLIER 1
#endif
#define TIMER_MULTIPLIER_MAX \
POWER_TIMER_MULTIPLIER * TEMPERATURE_TIMER_MULTIPLIER * LIGHT_TIMER_MULTIPLIER
unsigned int timerMultiplier = 0;