From 8baca31323bffa71f88ae4e13fab62e64889248f Mon Sep 17 00:00:00 2001
From: lhiven <2366881222@qq.com>
Date: Tue, 16 Jan 2024 09:02:46 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E6=96=99=E5=90=B8=E5=98=B4=E5=A2=9E?=
=?UTF-8?q?=E5=8A=A0=E7=A6=81=E7=94=A81=E5=8F=B7=E5=90=B8=E5=98=B4?=
=?UTF-8?q?=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Rs.SkyLine/Commom/NozzleCollection.cs | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/Rs.SkyLine/Commom/NozzleCollection.cs b/Rs.SkyLine/Commom/NozzleCollection.cs
index 9dd3ff8..2ac6592 100644
--- a/Rs.SkyLine/Commom/NozzleCollection.cs
+++ b/Rs.SkyLine/Commom/NozzleCollection.cs
@@ -172,11 +172,19 @@ namespace Rs.MotionPlat.Commom
///
///
///
- public static Nozzle GetIdelNozzle()
+ public static Nozzle GetIdelNozzle(bool disableNozzle1=false)
{
if (nozzles != null && nozzles.Count > 0)
{
- return nozzles.Where(n => n.Status == ENozzleStatus.IDLE).First();
+ if(disableNozzle1)
+ {
+ return nozzles.Where(n => n.Status == ENozzleStatus.IDLE && n.NozzleIndex!=1).First();
+ }
+ else
+ {
+ return nozzles.Where(n => n.Status == ENozzleStatus.IDLE).First();
+ }
+
}
return null;
}