Skip to content

Commit c749865

Browse files
committed
fix a bug in hmicontrol
1 parent cac0189 commit c749865

File tree

6 files changed

+5
-0
lines changed

6 files changed

+5
-0
lines changed

SCADA/Example/CoreTest.exe

0 Bytes
Binary file not shown.

SCADA/Example/HMIControl.dll

0 Bytes
Binary file not shown.
13.5 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.

SCADA/Program/HMIControl/Elevator.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ public override Action SetTagReader(string key, Delegate tagChanged)
113113
{
114114
return delegate { RPM = _funcRPM(); };
115115
}
116+
var _funcRPMf = tagChanged as Func<float>;
117+
if (_funcRPMf != null)
118+
{
119+
return delegate { RPM = _funcRPMf(); };
120+
}
116121
else return null;
117122
}
118123
return base.SetTagReader(key, tagChanged);

0 commit comments

Comments
 (0)