AnsweredAssumed Answered

Can not assign Unsigned char = unsigned char ?

Question asked by H.Rick on Oct 16, 2015
Latest reply on Oct 17, 2015 by Clive One

I tried to use unsigned char below, but I got error, how can I fix it ?
[CODE]const unsigned char data[] = {0xFF,0xF2,0x40,0xC0,0x19,0xB7,0x00,0x14,0x02,0xE6,0x5C,};
unsigned char *q;
q = data ;    [/CODE]

[CODE]..\Src\main.c(274): error:  #513: a value of type "const unsigned char *" cannot be assigned to an entity of type "unsigned char *"
                q = data;[/CODE]