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.