>         if (nodeId >= newLength) {
>>>             newLength = nodeId + 1;
>>>         }
>>>
>> This is to treat the case when node.length = 0.
>>
>
> That seems like a rather convoluted (unclear) way of checking for 0.   Why
> don't you simply check for node.length == 0?
>
>>
>>
>>
That was my initial guess. Maybe it is also to take care of the case when
there are connection drop/failures from intermediate notes. Does it seem
right?

Ha.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to