Quote Originally Posted by Bruce View Post
Hi Mark,

You can run a simple test to see what the limit is with the table attached.

Setup a loop to call your LOOKUP2 routine with an index value from 0 to 99.

Where does it fail?
Hi Bruce

I thought the same thing driving home from work.

I tried it and it does indeed go "off in the weeds" after reading 85 elements.

So I take it that mere mortals cannot tweak the macros?

I can decimate my table to remove the leading zero "placekeepers" and redundant upper section to get below 85 elements, but then I'll have to play some other games to assert some artificial offsets to enter the table correctly under differing circumstances.

This is a case where the compiler/macros really should be tweaked to allow larger tables, to allow things like thermistor tables, etc.

Maybe small table limits made sense back when the devices had little code space, but that's not as true anymore.