fixed off-by-one error

This commit is contained in:
tunix 2012-06-19 23:47:30 +02:00
parent ab1870534e
commit 214418387b
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}