From 71432c8a58f2faf96bb094535a4fdba237d45a52 Mon Sep 17 00:00:00 2001 From: "ext_luca.pansa@cms.it" Date: Tue, 26 Jan 2021 08:16:35 +0100 Subject: [PATCH] Aggiunta controllo su aggiunta dato da dizionario --- CMS_CORE_Library/Osai/Nc_Osai.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMS_CORE_Library/Osai/Nc_Osai.cs b/CMS_CORE_Library/Osai/Nc_Osai.cs index a0686e3..dbefcb5 100644 --- a/CMS_CORE_Library/Osai/Nc_Osai.cs +++ b/CMS_CORE_Library/Osai/Nc_Osai.cs @@ -4172,7 +4172,8 @@ namespace CMS_CORE_Library.Osai return cmsError; // Insert into the list - updatedStatus.Add(toolId, status); + if(!updatedStatus.ContainsKey(toolId)) + updatedStatus.Add(toolId, status); // Setup ack/strobe indexes // if i > 15 then index = next word