Merge pull request #13 from sdteffen/pumpEN_LINKPATTERN
ENgetlinkvalue(EN_LINKPATTERN) allows to retrieve pump patterns.
This commit is contained in:
@@ -1734,6 +1734,11 @@ int DLLEXPORT ENgetlinkvalue(int index, int code, float *value)
|
||||
case EN_LINKQUAL:
|
||||
v = avgqual(index) * Ucf[LINKQUAL];
|
||||
break;
|
||||
|
||||
case EN_LINKPATTERN:
|
||||
if (Link[index].Type == PUMP)
|
||||
v = (double)Pump[PUMPINDEX(index)].Upat;
|
||||
break;
|
||||
|
||||
default: return(251);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user