Skip to content

Commit 81642d9

Browse files
committed
Simulated in out driver now calls the right RaiseInputChanged method on invoking its Set* methods.
1 parent d2e2d7a commit 81642d9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Moryx.Drivers.Simulation/InOutDriver/SimulatedInOutDriver.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,28 +87,28 @@ public List<ValueModel> Outputs
8787
public void SetBool(string key, bool value)
8888
{
8989
SimulatedInput.Values[key] = value;
90-
SimulatedInput.RaiseInputChanged(key);
90+
SimulatedInput.RaiseInputChanged(key, value);
9191
}
9292

9393
[EntrySerialize]
9494
public void SetFloat(string key, float value)
9595
{
9696
SimulatedInput.Values[key] = value;
97-
SimulatedInput.RaiseInputChanged(key);
97+
SimulatedInput.RaiseInputChanged(key, value);
9898
}
9999

100100
[EntrySerialize]
101101
public void SetInteger(string key, int value)
102102
{
103103
SimulatedInput.Values[key] = value;
104-
SimulatedInput.RaiseInputChanged(key);
104+
SimulatedInput.RaiseInputChanged(key, value);
105105
}
106106

107107
[EntrySerialize]
108108
public void SetString(string key, string value)
109109
{
110110
SimulatedInput.Values[key] = value;
111-
SimulatedInput.RaiseInputChanged(key);
111+
SimulatedInput.RaiseInputChanged(key, value);
112112
}
113113

114114
/// <summary>
@@ -130,4 +130,4 @@ public class ValueModel
130130
public string Value { get; set; }
131131

132132
public override string ToString() => $"{Key}: {Value}";
133-
}
133+
}

0 commit comments

Comments
 (0)