Hi ,
I'm working with tinyos2.1. I have found two types of writing a call
to a command.
For example, the command prototype is:
command error_t Sender.generateConfig(uint8_t lvl, long snd_time,
DATA_Packet_t *packet,Sender_Config_t *p )
To call this command, I found two manners:
the
There is no difference between the manners.
Particularly in you example, the difference is that in the first call in
case of SUCCESS rest of the code will NOT be executed, since SUCCESS == 0.
In the second call, rest of the code WILL be executed.
If you want them to be the same you should write