This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2642R: Arrays in sensor controller can only be indexed by a variable called 'n'?

Part Number: CC2642R

Hello,

I'm currently using Sensor Controller v2.7.0.155 and I'm noticing that the compiler throws an error anytime you reference an item in an array with a variable that's not called "n".

For example, the following code throws an error:

state.indexer = 0;
output.array = input.array[state.indexer];

Similarly, the following code also throws an error:

U16 i;
i = state.indexer;
output.array = input.array[i];

However, if I reference the array with a variable named "n", it works:

U16 n;
n = state.indexer;
output.array = input.array[n];

Is anyone else experiencing this? There's no mention of this somewhat arbitrary rule in the Sensor Controller Help and it'd be nice to be able to have several different indexing variables.