Not sure if it's better, but the title was about a LOOKUP table ...
Code:Idx VAR BYTE Get_Pressure: LOOKDOWN2 datax,<=[322,325,328,331,336,339,342,346,351,355,360,364,370,375,379,389,65535],Idx LOOKUP2 Idx,[999, 0, 25, 50, 75,100,120,140,160,180,200,220,240,260,280,300, 999],pressure RETURN
Bookmarks