Hi,

I have a question about the following code from Rfm_model.c. The parameter bit can be 1 or 0. When simple_trasmit is transmitting bit 1,  transmitting[modeID] is set to 1, meaning it's transmitting. However, when simple_transmit is transmitting bit 0, transmitting[modeID] is set to 0, meaning it's not transmitting (actually it's transmitting bit 0). Why is it so? I must have the concept wrong. Could any help me on this?

void simple_transmit(int moteID, char bit) {
  int i;
 
  transmitting[moteID] = bit;
  for (i = 0; i < tos_state.num_nodes; i++) {
    radio_active[i] += bit;
  }
}


Regards,
Haibin
_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to