I for the life of me cant figure this out. I am inputting a string from the serial port that looks like..
t0x123,FF,00,01,01,D6,00,FF,F1
I need to take that data and make it into an array of int values. Right now I have it reading the data in as a char array for each character. The problem is is this format I cant do much as I need both values to do a sscanf. So how can I reformat this char array from...
char array 1 =
t
0
x
1
2
3
F
F
etc...
to
char array 2 =
t
0x123
FF
00
01
etc..
so I can for loop a sscanf and get the hex int?