From 287b2100f0ed1d48a19bdb2f0d96459d28bb5d6b Mon Sep 17 00:00:00 2001 From: huahaiyan <3686255842@qq.com> Date: Fri, 8 Mar 2024 16:34:40 +0800 Subject: [PATCH] =?UTF-8?q?20240308=201=E3=80=81=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=92=88=E5=AD=94=E5=BE=84=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mctype/patternsingleboard/mainUI/mainwidget.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mctype/patternsingleboard/mainUI/mainwidget.cpp b/mctype/patternsingleboard/mainUI/mainwidget.cpp index 29939a0..58e1804 100644 --- a/mctype/patternsingleboard/mainUI/mainwidget.cpp +++ b/mctype/patternsingleboard/mainUI/mainwidget.cpp @@ -3976,7 +3976,8 @@ void MainWidget::slotSetPatternData() { //冲缝机如果花版中色序大于冲孔针杆数,将此色序设置为缝纫色序 //因为打版软件自带缝纫色序错误(与冲孔混用),在界面这样临时处理下,后续需要与打版软件商讨修改 - if(m_fileColorTable[i] >= punchNum) + //后256个色序保存的是针孔大小,不能改变 + if(m_fileColorTable[i] >= punchNum && i < (sizeof(m_fileColorTable)/sizeof(m_fileColorTable[0])/2)) { m_fileColorTable[i] = EMB_NEEDLE_NUM + PUNCH_NEEDLE_NUM + 1; } @@ -4440,7 +4441,7 @@ void MainWidget::onFiveSecondTimer() } else { - //g_pMachine->setTcpConnectState(1);//将连接状态置为1 + g_pMachine->setTcpConnectState(1);//将连接状态置为1 } m_conFlag = -1; }