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:
commit
07b541b73d
@ -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++);
|
||||
|
Loading…
Reference in New Issue
Block a user