added secs night detection
This commit is contained in:
parent
f13a772cca
commit
a7c737f62c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue