Code like this:
// variable declaration
uint8_t dataLength, message[ARRAY_SIZE]; // ARRAY_SIZE already
defined
uint16_t countVals, arraySize, currIndex, ;
// 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]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help