openbeacon, game: more jitter

This commit is contained in:
schneider 2011-12-21 19:54:31 +01:00
parent f94b33963a
commit 21b1b51a85
2 changed files with 7 additions and 2 deletions

View File

@ -82,8 +82,8 @@ static uint8_t openbeaconSendPacket(uint32_t id, uint32_t seq,
{
uint8_t buf[32];
volatile uint8_t i;
i = getRandom()&0xff;
volatile uint16_t i;
i = getRandom()&0xfff;
while(i--);
buf[0]=0x10; // Length: 16 bytes

View File

@ -148,6 +148,11 @@ void playGame(void)
}
int rnd = getRandom() % jitter;
delayms(interval*5+rnd);
volatile uint16_t i;
i = getRandom()&0xfff;
while(i--);
};
}