Skip to content

Commit

Permalink
io_repeater app: Added a comment to explain the ADC reading.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidEGrayson committed Jun 22, 2012
1 parent 12d9984 commit 0842142
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/io_repeater/io_repeater.c
Expand Up @@ -193,6 +193,10 @@ void main(void)
radioQueueTxSendPacket();

lastTx = getMs();

// Decide when to send the next packet. We take a noisy reading of the temperature sensor
// to get two random bits, so that we can avoid accidentally getting synchronized with another
// transmtiting Wixel.
txInterval = 7 + (adcRead(14 | ADC_BITS_7) & 3);
}
}
Expand Down

0 comments on commit 0842142

Please sign in to comment.