Use new mutex :)

This commit is contained in:
Stefan `Sec` Zehl 2011-07-25 23:26:18 +02:00
parent d8563eb64d
commit 0b930aef48
1 changed files with 5 additions and 3 deletions

View File

@ -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())