Lookup table resizing.
Posted: Thu Mar 21, 2024 9:16 pm
I hit a small issue resizing a lookup table (in an Arduino sketch - though this might not be relevant)
I created an 8 bit lookup table and pasted in 4637 values - this was correctly reflected in the num values field.
However - to create a simpler 'demo' version of my program I then replaced these values by pasting in 19 values - now NumValues shows 1 (and lut1::GetNumValues() returns 1) (the values were the first 19 of the larger data set)
Typing some values - say 1 2 3 4 5 6 also has NumValues as 1.
Replacing the original data - restores NumValues to 4637.
Martin
I created an 8 bit lookup table and pasted in 4637 values - this was correctly reflected in the num values field.
However - to create a simpler 'demo' version of my program I then replaced these values by pasting in 19 values - now NumValues shows 1 (and lut1::GetNumValues() returns 1) (the values were the first 19 of the larger data set)
Typing some values - say 1 2 3 4 5 6 also has NumValues as 1.
Replacing the original data - restores NumValues to 4637.
Martin