On Tue, Mar 2, 2010 at 10:01 AM, Xiaohui Liu <[email protected]> wrote: > Hi, > > In the forwarding engine, I find the following: > event message_t* > SubReceive.receive(message_t* msg, void* payload, uint8_t len) { > ... > //... and in the queue for duplicates > if (call SendQueue.size() > 0) { > for (i = call SendQueue.size(); --i;) { > //should the statement above be for (i = call SendQueue.size(); i--;) > { > //Consider the case when the size of queue is 1, the original statement will > simply skip looking at the only element in queue. > qe = call SendQueue.element(i); > if (call CtpPacket.matchInstance(qe->msg, msg)) { > duplicate = TRUE; > break; > }
Yes. That is a bug. - om_p _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
