sorry, typo. ________________________________________ From: Eric Decker [[email protected]] Sent: Saturday, 15 June, 2013 4:23:22 PM To: He Dajiang (I2R) Cc: [email protected] Subject: Re: [Tinyos-help] simple code problem, need help understanding compiler error
On Sat, Jun 15, 2013 at 1:19 AM, He Dajiang (I2R) <[email protected]<mailto:[email protected]>> wrote: Code like this: // variable declaration uint8_t dataLength, message[ARRAY_SIZE]; // ARRAY_SIZE already defined uint16_t countVals, arraySize, currIndex, ; that doesn't look right. ", ;" eh? // here are the codes dataLength = 16; countVals = 2*valC; arraySize =countVals * dataLength / 7; if (1==1) { } currIndex = 0; //uint8_t message[arraySize]; illegal. if u need it to be dynamic, use pointer and malloc Institute for Infocomm Research disclaimer: "This email is confidential and may be privileged. If you are not the intended recipient, please delete it and notify us immediately. Please do not copy or use it for any purpose, or disclose its contents to any other person. Thank you." _______________________________________________ Tinyos-help mailing list [email protected]<mailto:[email protected]> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- Eric B. Decker Senior (over 50 :-) Researcher Institute for Infocomm Research disclaimer: "This email is confidential and may be privileged. If you are not the intended recipient, please delete it and notify us immediately. Please do not copy or use it for any purpose, or disclose its contents to any other person. Thank you." _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
