Dear all,

I implemented two timers, 1st (Timer0) for the counter, 2nd (Timer1) is for the frequency change. In the code below:

 event result_t SendMsg.sendDone(TOS_MsgPtr msg, result_t success)
 {
   if (!(msg->ack)){
       m_int--;
       call Leds.yellowToggle();
       }
       else {
           call MacControl.disableAck();
           call Timer1.start( TIMER_REPEAT, 5120 );
} m_sending = FALSE;
   return SUCCESS;
 }

Here, although I did call Timer1.start, and implemented the frequency change in the Timer1.fired(), I never got the fequency changed successfully. The transmit frequency always stays the same. Any suggestions please? I have been stuck here trying to find the problem for a long time:(

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

Reply via email to