Skip to content

Commit

Permalink
Update Form1.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
feecat committed Jul 25, 2023
1 parent eb8a359 commit 67b745a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public void StartModbusTcpSlave()

IModbusSlaveNetwork network = factory.CreateSlaveNetwork(slaveTcpListener);

IModbusSlave slave = factory.CreateSlave(0xFF);
IModbusSlave slave = factory.CreateSlave(byte.Parse(set.address));

network.AddSlave(slave);
network.ListenAsync();
Expand Down

0 comments on commit 67b745a

Please sign in to comment.