diff --git a/LibreHardwareMonitor/UI/PlotPanel.cs b/LibreHardwareMonitor/UI/PlotPanel.cs index cd3957d..861d731 100644 --- a/LibreHardwareMonitor/UI/PlotPanel.cs +++ b/LibreHardwareMonitor/UI/PlotPanel.cs @@ -263,9 +263,13 @@ public class PlotPanel : UserControl StrokeThickness = 2, }; +#pragma warning disable CS0618 //obsolete warning + axis.AxisChanged += (sender, args) => annotation.Y = axis.ActualMinimum; axis.TransformChanged += (sender, args) => annotation.Y = axis.ActualMinimum; +#pragma warning restore CS0618 //obsolete warning + axis.Zoom(_settings.GetValue("plotPanel.Min" + axis.Key, float.NaN), _settings.GetValue("plotPanel.Max" + axis.Key, float.NaN)); if (units.ContainsKey(type)) diff --git a/LibreHardwareMonitorLib/Hardware/Motherboard/Lpc/IsaBridgeGigabyteController.cs b/LibreHardwareMonitorLib/Hardware/Motherboard/Lpc/IsaBridgeGigabyteController.cs index b70c5dc..cc9398d 100644 --- a/LibreHardwareMonitorLib/Hardware/Motherboard/Lpc/IsaBridgeGigabyteController.cs +++ b/LibreHardwareMonitorLib/Hardware/Motherboard/Lpc/IsaBridgeGigabyteController.cs @@ -87,8 +87,8 @@ internal class IsaBridgeGigabyteController : IGigabyteController { bool isEntered = false; - /// use a try finaly + the to get a safe - /// and pattern + // use try finally + isEntered to get a safe + // EnterMmio and ExitMmio pattern try { // get initial state if missing