From fc3a39b1ca392b28e1e39f18d0321c85a44f0c2f Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Wed, 11 Nov 2026 04:13:55 -0500 Subject: [PATCH] fix(mtconnect): name the comms-loss status constant so the status-code parity guard can see it (#846) --- .../MTConnectDriver.CommsLoss.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.MTConnect/MTConnectDriver.CommsLoss.cs b/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.MTConnect/MTConnectDriver.CommsLoss.cs index f10a5ff13..7e1b0578c 100644 --- a/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.MTConnect/MTConnectDriver.CommsLoss.cs +++ b/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.MTConnect/MTConnectDriver.CommsLoss.cs @@ -41,7 +41,7 @@ namespace ZB.MOM.WW.OtOpcUa.Driver.MTConnect; public sealed partial class MTConnectDriver { /// Canonical Opc.Ua.StatusCodes.BadNoCommunication. - private const uint BadNoCommunicationStatus = 0x80310000u; + private const uint StatusBadNoCommunication = 0x80310000u; /// 1 while a confirmed refused-connection outage has marked the subscribed values Bad. private int _commsLostMarked; @@ -146,7 +146,7 @@ public sealed partial class MTConnectDriver _logger.LogWarning( "MTConnect driver {DriverInstanceId}: {AgentUri} has refused every connection for {RefusedMs} ms (definite loss); marking {Count} subscribed value(s) BadNoCommunication until it answers again.", _driverInstanceId, AgentDisplay(options), (long)refusedFor.TotalMilliseconds, references.Count); - FanOutStatus(references, BadNoCommunicationStatus); + FanOutStatus(references, StatusBadNoCommunication); return true; }