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;
    }
...

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

Reply via email to