1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #372 from LudwigOrtmann/transceiver_foo

explain loop in transceiver_register
This commit is contained in:
LudwigOrtmann 2013-11-22 03:40:01 -08:00
commit 07b541b73d

View File

@ -211,6 +211,7 @@ uint8_t transceiver_register(transceiver_type_t t, int pid)
{
uint8_t i;
/* find pid in registered threads or first unused space */
for (i = 0; ((reg[i].pid != pid) &&
(i < TRANSCEIVER_MAX_REGISTERED) &&
(reg[i].transceivers != TRANSCEIVER_NONE)); i++);