added secs night detection

This commit is contained in:
kiu 2011-07-24 03:31:47 +02:00
parent f13a772cca
commit a7c737f62c
1 changed files with 2 additions and 4 deletions

View File

@ -33,8 +33,6 @@
#define FLAME_DOWN 0x03
#define FLAME_DOWN_WAIT 0x04
uint8_t isNight = 1; //TODO SEC implement me
void ReinvokeISP(void);
/**************************************************************************/
@ -58,7 +56,7 @@ void tick_flame(void) { // every 10ms
flameTicks++;
if (flameMode == FLAME_OFF) {
if (isNight == 1) {
if (isNight()) {
flameTicks = 0;
flameMode = FLAME_UP;
}