PaulS commented on this
the ISR changes the position of itself in the array
You are now saying this
populating the various slots in the array. if i change the sample size it makes a difference.
Two totally different things.
eave the array with 8 spaces but at low speed only use the first 2 then at higher speed maybe 4 then highest speed use all 8. i'll have to try it but i think it'll work better than trying to reallocate memory
Sounds like a better plan.
Rob