How to correct my code in case of an abnormal branch
Posted on January 19, 2018 at 09:51Hi.The below function is called by a few events.int sendDeviceEvent(int idx, char type){ int result; char *buff; if(type == TYPE_REG) { makeRegInfo(idx,buff); sendInfoToSlave(buff, sizeof(sRegPoll)); } else if(ty...