fixed off-by-one error
This commit is contained in:
parent
ab1870534e
commit
214418387b
|
@ -224,9 +224,9 @@ void main_awake(void) {
|
|||
if ((ePacket <= AWAKE_PCKT_WINNER7) &&
|
||||
!(nWinnerFlags & nWinnerMask)) {
|
||||
nWinnerFlags |= nWinnerMask;
|
||||
DoInt(0, 32, nWinnerCount);
|
||||
DoInt(0, 32, ++nWinnerCount);
|
||||
lcdDisplay();
|
||||
if (++nWinnerCount >= AWAKE_MIN_WINNERS) {
|
||||
if (nWinnerCount >= AWAKE_MIN_WINNERS) {
|
||||
state = AWAKE_STATE_WON;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue