Added option to retrieve the pumps price pattern

Added to ENgetlinkvalue function like the speed\status pattern. use the
new EN_PRICEPATTERN constant.
This commit is contained in:
Elad Salomons
2017-04-13 12:14:32 +03:00
parent 8d968738ac
commit 8ab0f06ccc
4 changed files with 9 additions and 1 deletions

View File

@@ -1460,6 +1460,11 @@ int DLLEXPORT ENgetlinkvalue(int index, int code, EN_API_FLOAT_TYPE *value)
v = (double)Pump[PUMPINDEX(index)].Upat;
break;
case EN_PRICEPATTERN:
if (Link[index].Type == PUMP)
v = (double)Pump[PUMPINDEX(index)].Epat;
break;
case EN_EFFICIENCY:
getenergy(index, &a, &v);
break;