早教吧作业答案频道 -->其他-->
43syntaxerrorbefore`;'eventmessaget*Receive.receive(messaget*msg,void*payload,uint8tlen){40testsendmsgt*btrpkt;41if((len==sizeof(testsendmsgt))&&(TOSNODEID==1)){42recFlags=TRUE;43memcpy(btrpkt,(testsendmsgt
题目详情
43 syntax error before `;'
event message_t *Receive.receive (message_t *msg,void *payload,uint8_t len) {
40 test_send_msg_t * btrpkt;
41 if ( (len == sizeof(test_send_msg_t)) && (TOS_NODE_ID == 1) ) {
42 recFlags = TRUE;
43 memcpy(btrpkt,(test_send_msg_t*)payload,sizeof(test_send_msg_t);
44 printf("listening the message %d \n",btrpkt->count);
45 showDate = btrpkt->number>>2;
46 showDate |= btrpkt->colour;
47 call Update.change(&showDate);
48 }
49 }
event message_t *Receive.receive (message_t *msg,void *payload,uint8_t len) {
40 test_send_msg_t * btrpkt;
41 if ( (len == sizeof(test_send_msg_t)) && (TOS_NODE_ID == 1) ) {
42 recFlags = TRUE;
43 memcpy(btrpkt,(test_send_msg_t*)payload,sizeof(test_send_msg_t);
44 printf("listening the message %d \n",btrpkt->count);
45 showDate = btrpkt->number>>2;
46 showDate |= btrpkt->colour;
47 call Update.change(&showDate);
48 }
49 }
▼优质解答
答案和解析
memcpy(btrpkt,(test_send_msg_t*)payload,sizeof(test_send_msg_t); 这行最右边少了括回去的小括号啊
看了 43syntaxerrorb...的网友还看了以下:
MSG(monosodiumglutamate)isafoodadditive(食品添加剂),wh 2020-05-13 …
importjava.util.logging.Logger;………Loggerlogimport 2020-06-02 …
MODBUS通信问题MODBUS-MSG块中,SLAVE这个功能项内的从站地址范围是1到247,是 2020-06-17 …
43syntaxerrorbefore`;'eventmessaget*Receive.recei 2020-07-23 …
英语翻译msg:video-userprovidednoinputforgraphicstestt 2020-07-26 …
请问mfc组件中如何使PreTranslateMessage函数有作用,望给个明确易懂的步骤dll 2020-07-26 …
开心泡泡猫打不开,而且出现了这样一段文字{"msg":"Anerroroccurred","trac 2020-10-31 …
OMJDmissingpartchecking求解今天看到POMIGO的时候有一个msg提示GR的是 2020-10-31 …
这makefile用的是什么鸟编译器?makefile的内容如下TARGETNAME=nameTAR 2020-11-23 …
MATLAB,关于wavread[s,fs,bit]=wavread('c:\msg.wav');s 2021-02-05 …