Originally Posted by
r_james14
ahhh yeah sorry, explains a awful lot now, next related question, is there a easy way to print this sendData in the following form
SendData[0]=0x00c3;
SendData[1]=0x00c4;
SendData[2]=0x00c5;
SendData[3]=0x00c6;
SendData[4]=0x00c7;
So it prints c3c4c5c6 and not combines them without having to put SendData[0]SendData[1] etc
Lose the 00 from each value... Yes they will fit in a char type, but the notation is deceiving... 0xc3 0xc4 etc.
You want to print them like above?..
Code:
for (int i = 0; i < 5; i++)
printf("SendData[%d] = 0x%x\n", i, SendData[i]);