Skip to content

Commit bdf31f9

Browse files
Began adding multi instance safety monitor
1 parent 527d4e6 commit bdf31f9

File tree

4 files changed

+104
-186
lines changed

4 files changed

+104
-186
lines changed

ASCOM.Alpaca.Simulators/Pages/SafetyMonitorSetup.razor

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
else
1414
{
1515
<fieldset>
16-
<legend>SafetyMonitor Settings</legend>
16+
<legend>SafetyMonitor @InstanceID Settings</legend>
1717
<div class="grid-container-two">
1818
<div class="grid-item-left">
1919
<svg width="30" height="30">
@@ -22,6 +22,9 @@
2222
<button @onclick="Connect">@ConnectText</button>
2323
</div>
2424
<div class="grid-item-right">
25+
<ErrorBoundary>
26+
<LogLevelControl Driver="@(Device as OmniSim.BaseDriver.Driver)" />
27+
</ErrorBoundary>
2528
</div>
2629
</div>
2730

@@ -155,7 +158,8 @@
155158
}
156159
set
157160
{
158-
Device.SetIsSafeProfile(value);
161+
Device.IsSafeSetting.Value = value;
162+
Device.SaveProfileSettings();
159163
}
160164
}
161165

FocuserSimulator/Focuser.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ namespace ASCOM.Simulators
1111
using ASCOM.Common.DeviceInterfaces;
1212
using ASCOM.Common.Interfaces;
1313
using OmniSim.BaseDriver;
14-
using static System.Runtime.InteropServices.JavaScript.JSType;
1514

1615
/// <summary>
1716
/// Motor states.

0 commit comments

Comments
 (0)