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