fixed arduino timer issue
This commit is contained in:
parent
c1c923a2fc
commit
8526e5157d
2 changed files with 15 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue