Use new mutex :)
This commit is contained in:
parent
d8563eb64d
commit
0b930aef48
|
@ -116,9 +116,11 @@ void tick_default(void) {
|
||||||
ctr++;
|
ctr++;
|
||||||
incTimer();
|
incTimer();
|
||||||
if(ctr>100){
|
if(ctr>100){
|
||||||
VoltageCheck();
|
if(!adcMutex){
|
||||||
LightCheck();
|
VoltageCheck();
|
||||||
ctr=0;
|
LightCheck();
|
||||||
|
};
|
||||||
|
ctr--;
|
||||||
};
|
};
|
||||||
|
|
||||||
if(isNight())
|
if(isNight())
|
||||||
|
|
Loading…
Reference in New Issue