From bea6407b376a4e426f0b120bae569fba6ab867db Mon Sep 17 00:00:00 2001
From: chenluhua1980 <Chenluhua@qq.com>
Date: 星期六, 08 十一月 2025 17:55:47 +0800
Subject: [PATCH] 1.CMaster.cpp 第 1644/1667/1691 行在记录 SV 曲线时通过 getGlassFromSlot(0) 取玻璃,而各设备的 initSlots() 都是从 1 开始编号(例如 CBonder.cpp (line 408)、CVacuumBake.cpp (line 415) 等)。槽位 0 永远不存在,所以 pGlass 始终是 nullptr,pGlass->addSVData(...) 的分支从未执行。结果 SERVO::CGlass::m_svDatas 里没有任何曲线数据,GlassJson::ToPrettyString 生成的 pretty 字符串也就没有 sv_datas,导出 CSV 时自然读不到曲线。 同一段代码还有一个潜在 Bug:虽然判断了 channel - 1 < bonderTypes.size(),但真正索引却用的是 bonderTypes[channel]。索引偏移会导致数据类型错位,最后一个通道甚至可能越界。即使修正了槽位,这里也需要同步改成 bonderTypes[channel - 1](另外两处 vacuumbakeTypes、coolingTypes 也一样)。
---
SourceCode/Bond/BLControlsSDK/include/StaticMap.h | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/SourceCode/Bond/BLControlsSDK/include/StaticMap.h b/SourceCode/Bond/BLControlsSDK/include/StaticMap.h
index 591e458..66e69c3 100644
--- a/SourceCode/Bond/BLControlsSDK/include/StaticMap.h
+++ b/SourceCode/Bond/BLControlsSDK/include/StaticMap.h
@@ -13,7 +13,7 @@
#define ORIGIN_RIGHTBOTTOM 3
#define UM_MAP_CHANGED 5573
-#define _MENU_DEFECT_LIST_ID_ 8000
+#define _MENU_DEFECT_LIST_ID_ 8000
/////////////////////////////////////////////////////////////////////////////
// CStaticMap window
enum OriginDirection { OD_LeftTop = 0, OD_RightTop = 1, OD_LeftBottom = 10, OD_RightBottom = 11 };
@@ -29,7 +29,7 @@
// Operations
public:
- void InitGlass(CWnd* pParent, int nMapWidth, int nMapHeight, int nMapMargin); // Pixel 窜困 付柳.
+ void InitGlass(CWnd* pParent, int nMapWidth, int nMapHeight, int nMapMargin); // Pixel 绐滃洶 浠樻煶.
void DeinitGlass();
int GetMapTotalWidth() { return m_nMapTotalWidth; }
int GetMapTotalHeight() { return m_nMapTotalHeight; }
@@ -50,7 +50,7 @@
virtual void RegistNoDefect() { }
virtual void Timer(UINT nIDEvent) { }
- // 犬措/绵家
+ // 鐘帾/缁靛
void IncreaseRatio();
void DecreaseRatio();
void ResetRatio();
@@ -61,7 +61,7 @@
void SetDisplayRect(CPoint& PointStart, CPoint& PointEnd);
void SetShowShot(BOOL bShow) { m_bShowShot = bShow; }
- // 历厘
+ // 鍘嗗帢
void SaveMapToFile(CString strFileName);
void SetBGColor(COLORREF color) { m_clBGColor = color; }
@@ -95,7 +95,7 @@
long m_clBGColor;
long m_clPatColor;
//////////////////////////////////////////////////////////////////////////
- // 弊府扁 沥焊
+ // 寮婂簻鎵� 娌ョ剨
HBITMAP m_hDrawingSurface;
BITMAPINFOHEADER m_BMIH;
CRect m_RectDrawingSurface;
@@ -104,24 +104,24 @@
OriginDirection m_OriginDir;
int m_nUnitSize;
- // Cell 弊府扁
+ // Cell 寮婂簻鎵�
BOOL m_bShowShot;
- // 犬措/绵家
+ // 鐘帾/缁靛
CRect m_RectShowWnd;
double m_dRatio;
CPoint m_PointWindowStart;
BOOL m_bDragMove;
CPoint m_PointDragStart;
- BOOL m_bIsMiniMap; // Minimap篮 犬措/绵家甫 救茄促.
- CPoint m_PointGlassStart; // Glass 吝 泅犁 焊咯瘤绰 康开.
+ BOOL m_bIsMiniMap; // Minimap绡� 鐘帾/缁靛鐢� 鏁戣寗淇�.
+ CPoint m_PointGlassStart; // Glass 鍚� 娉呯妬 鐒婂挴鐦ょ话 搴峰紑.
CPoint m_PointGlassEnd;
- POINT m_PointCCut[3]; //内呈钠 弊府扁 谅钎
+ POINT m_PointCCut[3]; //鍐呭憟閽� 寮婂簻鎵� 璋呴拵
int m_nCCutSize;
- int m_nCoordGabX; // 谅钎甫 谎副 芭府.
- int m_nCoordGabY; // 谅钎甫 谎副 芭府.
+ int m_nCoordGabX; // 璋呴拵鐢� 璋庡壇 鑺簻.
+ int m_nCoordGabY; // 璋呴拵鐢� 璋庡壇 鑺簻.
//{{AFX_MSG(CStaticGlass)
afx_msg void OnPaint();
--
Gitblit v1.9.3