ENgetlinkvalue(EN_LINKPATTERN) allows to retrieve pump patterns.

This commit is contained in:
Steffen Macke
2014-01-24 18:01:54 +01:00
parent 55929ff443
commit 48f9d3989d
2 changed files with 6 additions and 0 deletions

View File

@@ -1738,6 +1738,11 @@ int DLLEXPORT ENgetlinkvalue(int index, int code, float *value)
v = avgqual(index) * Ucf[LINKQUAL];
break;
case EN_LINKPATTERN:
if (Link[index].Type == PUMP)
v = (double)Pump[PUMPINDEX(index)].Upat;
break;
default: return(251);
}
*value = (float)v;

View File

@@ -79,6 +79,7 @@ AUTHOR: L. Rossman
#define EN_SETTING 12
#define EN_ENERGY 13
#define EN_LINKQUAL 14 /* TNT */
#define EN_LINKPATTERN 15
#define EN_DURATION 0 /* Time parameters */
#define EN_HYDSTEP 1