Skip to content

Commit c2e1c35

Browse files
authored
Merge pull request #1 from DMXControl/3.3
Merge into master
2 parents 760bfad + c514a0b commit c2e1c35

3 files changed

Lines changed: 4 additions & 10 deletions

File tree

Modbus-dmxc3-GUI-Plugin/Modbus-dmxc3-GUI-Plugin.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</PropertyGroup>
1717
<ItemGroup>
1818
<Reference Include="LumosGUI">
19-
<HintPath Condition="Exists('..\..\Lumos\3.3\Lumos\bin\Debug\net6.0')">..\..\Lumos\3.3\Lumos\bin\Debug\net6.0\LumosGUI.exe</HintPath>
19+
<HintPath Condition="Exists('..\..\Lumos\3.3\LumosGUI\bin\Debug')">..\..\Lumos\3.3\LumosGUI\bin\Debug\LumosGUI.exe</HintPath>
2020
<HintPath Condition="Exists('..\..\Lumos\LumosGUI\bin\Debug')">..\..\Lumos\LumosGUI\bin\Debug\LumosGUI.exe</HintPath>
2121
<HintPath Condition="Exists('..\dep')">..\dep\LumosGUI.exe</HintPath>
2222
<Private>True</Private>

Modbus-dmxc3-GUI-Plugin/ModbusManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void IManager.shutdown()
4747
this.shutdownManager();
4848
}
4949

50-
ReadOnlyCollection<Type> IManager.ManagerDependencies
50+
public IReadOnlyCollection<Type> ManagerDependencies
5151
{
5252
get
5353
{

Modbus-dmxc3-Plugin/src/ModbusManager.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ public sealed class ModbusManager : AbstractManagerAndService, ILumosProjectMana
2323
private List<AbstractModbusMaster> modbusMastersRemoteDevices = new List<AbstractModbusMaster>();
2424
private ModbusServer server;
2525

26-
private Timer timer;
27-
2826
private ushort _lastShownAddresses = 0;
2927

3028
private ModbusManager()
@@ -68,10 +66,6 @@ void IManager.initialize()
6866
this.ShowInInputAssignment();
6967
else
7068
this.RemoveFromInputAssignment();
71-
72-
73-
timer = new Timer(new TimerCallback(autoRefresh), null, 5000, 500);
74-
7569
}
7670

7771
private void ModbusManager_SettingChanged(object sender, SettingChangedEventArgs args)
@@ -328,7 +322,7 @@ void IManager.shutdown()
328322
this.shutdownManager();
329323
}
330324

331-
ReadOnlyCollection<Type> IManager.ManagerDependencies
325+
public IReadOnlyCollection<Type> ManagerDependencies
332326
{
333327
get
334328
{
@@ -345,7 +339,7 @@ ReadOnlyCollection<Type> IManager.ManagerDependencies
345339

346340
ELoadTime ILumosProjectManager.LoadTime => ELoadTime.BEFORE_CONTAINERS;
347341

348-
public string Name => throw new NotImplementedException();
342+
public string Name => nameof(ModbusManager);
349343

350344
void ILumosProjectManager.closeProject(LumosIOContext context)
351345
{

0 commit comments

Comments
 (0)