modernize camera_betterer

This commit is contained in:
Arisotura
2022-09-25 21:33:17 +02:00
parent 4ec22dda9e
commit e63c2985fc
86 changed files with 9697 additions and 3375 deletions

View File

@ -91,7 +91,7 @@ void DeInit()
void Reset()
{
// random starting point for the counter
USCounter = 0x428888017ULL;
USCounter = 0x428888000ULL;
SeqNo = 0x0120;
BeaconDue = false;
@ -115,18 +115,6 @@ bool MACIsBroadcast(u8* a)
}
void USTimer()
{
USCounter++;
u32 chk = (u32)USCounter;
if (!(chk & 0x1FFFF))
{
// send beacon every 128ms
BeaconDue = true;
}
}
void MSTimer()
{
USCounter += 0x400;