Hi,

I am facing a very strange issue with Leds.

In the following code, the leds light up when i give a constant value.
But not when I give a variable. Can somebody help me with this.

Bhavish

The code is:

uint8_t count = 0;

while(!(call UartControl.isRxIntrPending()));
length = call UartControl.rx();
size = length;

while(size > 0){
  while(!(call UartControl.isRxIntrPending()));
  packet[length - size] = call UartControl.rx();
  count++;
  size--;
}

call Leds.set(2 /*if i replace 2 by "count", the leds don't light up*/);
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to