Hi,

I know it may sound like a very simple problem but I am totally confused.

I have an array here:

uint8_t array[4]={0x11,0x22,0x33,0x44};

when I pass this array in the command I called. I got some warning. I can't
understand it.

call abc(x[4]);

I got the warning:

warning: passing argument 2 of `abc' makes pointer from integer without a
cast

However if i use

call command(x);

Nothing wrong when i compiled it.

Could anyone tell me what is the problem? Is it kinda of NesC grammer I
didn't notice? Thanks in advance.

Regards,
Bai
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to