Hi, thanks for the reply!
I tried to cast the ADCH before sending it over the radio, using the following code,
uint8_t uADCH = (uint8_t) ADCH;
SMPL_Send (linkID, &uADCH, 1);
But did not seem to work.
I tried the following way, y = static_cast<unsigned char>(x), IAR does not support static_cast.
So how to cast it properly? Thanks!