From fc8a81d80e32cdafdae319cf439145db6613c793 Mon Sep 17 00:00:00 2001
From: QuakeGod <QuakeGod@sina.com>
Date: 星期五, 22 七月 2022 15:00:10 +0800
Subject: [PATCH] fix HvserialPort and Klink

---
 MTerm2/MTerm2View.cpp |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/MTerm2/MTerm2View.cpp b/MTerm2/MTerm2View.cpp
index 8e84d07..681f6d3 100644
--- a/MTerm2/MTerm2View.cpp
+++ b/MTerm2/MTerm2View.cpp
@@ -1429,13 +1429,14 @@
 	s1.Format(_T("Insert Blank Line"));
 	SysLog(s1);
 	m_FocusRow;
+	//褰撳墠琛屼箣鍚庣殑鎵�鏈夛紝涓嬬Щ涓�琛�
 	for (int i = m_nTotalRow - 1; i >= m_FocusRow; i--) {
 		for (int j = 0; j < m_CellPerLine; j++) {
 			Cells[i + 1][j] = Cells[i][j];
 		}
 	}
 	m_nTotalRow += 1;
-		
+	// 褰撳墠琛岀伆鑹�	
 	for (int j = 0; j < m_CellPerLine; j++)	{
 		Cells[m_FocusRow][j].clear();
 		Cells[m_FocusRow][j].bEditing = 1;
@@ -1445,6 +1446,13 @@
 			Cells[m_FocusRow][j].bLeftLineDn = 1;
 		}
 	}
+	// 褰撳墠琛� 鍔犲叆 瑙︾偣
+	m_FocusCol;
+	Cells[m_FocusRow][0].nType= typeNO;
+	Cells[m_FocusRow][0].nDataType = KLCoilTypeX;
+	Cells[m_FocusRow][0].nDataAddr = 15;
+	Cells[m_FocusRow][0].sCoilName = "ABCDEFG";
+
 	m_bModified = 1;
 	needReDraw = 1;
 	this->RedrawWindow();

--
Gitblit v1.9.1