Added some debugging for misc. UIs.
tron = !tron;
sstate = 0;
}
+ if(tron)
+ dsp[1] |= SEGP;
+ else
+ dsp[1] &= ~SEGP;
#endif
#if 0
/*
} else {
display(cur);
}
+ if(PINB & 4)
+ dsp[1] |= SEGP;
#endif
}
}
ISR(SIG_PIN_CHANGE0)
{
- if((sstate == 0) & ((PINB & 4) == 0)) {
+ if((sstate == 0) && !(PINB & 4)) {
stime = oticks;
sstate = 1;
}
- if((sstate == 1) & ((PINB & 4) == 1)) {
+ if((sstate == 1) && (PINB & 4)) {
stime = oticks - stime;
sstate = 2;
}