AnsweredAssumed Answered

When I try to pass arguments in a function it does not work properly?

Question asked by Jesse Mayfield on Dec 22, 2015
Latest reply on Dec 24, 2015 by ZhangJennie

I have a function declared as follows:

void Build_API_Tx_Frame ( unsigned char frame_type, unsigned char *payload, unsigned char, payload_size);


Tx_Frame_Type = frame_type;


No need to type the rest  of the function here...




When I call this function in my main routine, Tx_Frame_Type does not get passed correctly, it retains a value of zero when I step through in the debugger.

The other arguments being passed, *payload, and payload_size are passing and updating as expected.


Any help would be greatly appreciated.