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.