From 35e0662b27a52755d4a75e5e5d323212fe1e9632 Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Fri, 24 May 2024 16:13:21 -0500 Subject: [PATCH] fix: only update CurrentInputPort if it has changed --- .../Displays/DisplayBase.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PepperDash.Essentials.Devices.Common/Displays/DisplayBase.cs b/src/PepperDash.Essentials.Devices.Common/Displays/DisplayBase.cs index 541ef80a..9796599b 100644 --- a/src/PepperDash.Essentials.Devices.Common/Displays/DisplayBase.cs +++ b/src/PepperDash.Essentials.Devices.Common/Displays/DisplayBase.cs @@ -29,6 +29,8 @@ namespace PepperDash.Essentials.Devices.Common.Displays protected set { + if (_currentInputPort == value) return; + _currentInputPort = value; InputChanged?.Invoke(this, _currentInputPort);