Merge pull request #13 from sdteffen/pumpEN_LINKPATTERN

ENgetlinkvalue(EN_LINKPATTERN) allows to retrieve pump patterns.
This commit is contained in:
Sam Hatchett
2014-01-27 07:31:39 -08:00
2 changed files with 6 additions and 0 deletions

View File

@@ -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);
}