Page 1 of 1

Zigbee Module - Customise Code

Posted: Sat Oct 20, 2012 1:05 pm
by Sefi
I wonder if anyone can help with this issue:

in the zigbee module Custom Code section, the receive_Char(nTimeout) Macro, the macro appears to be empty, yet when you look at the component file the following line of code is present.

Code: Select all

return %a_UART_Receive(nTimeout);
Why is the code not appearing in the Custom code section?

many thanks
Sefi

Re: Zigbee Module - Customise Code

Posted: Mon Oct 22, 2012 10:23 am
by LeighM
Hi Sefi,

Sorry, there is a bug in the component code, the 'char' should be 'MX_UINT8'


MX_UINT8 Receive_Char(MX_UINT8 nTimeout)
{
/*Macro_Receive_Char_Start*/

return %a_UART_Receive(nTimeout);

/*Macro_Receive_Char_End*/
}