C buffer issue hard coding -
C buffer issue hard coding -
rf_rx_buff[0]; //first 2 bits of serial number rf_rx_buff[1]; //second 2 bits rf_rx_buff[2]; //third rf_rx_buff[3]; //fourth
i want hardcode serial number of device.
rf_rx_buff[0]=0x30; rf_rx_buff[1]=0x67; rf_rx_buff[2]=0x43; rf_rx_buff[3]=0x57; i getting error saying invalid dimension, missing basic type; int assumed
in c, have declare type of variable before utilize it. , since using array, have this:
char rf_rx_buff[4]; //declare array of char size 4 rf_rx_buff[0]=0x30; rf_rx_buff[1]=0x67; rf_rx_buff[2]=0x43; rf_rx_buff[3]=0x57; c
Comments
Post a Comment