From 326d3e312c74726814c39c9d112faab03c4a167c Mon Sep 17 00:00:00 2001
From: QuakeGod <QuakeGod@sina.com>
Date: 星期日, 16 一月 2022 13:53:57 +0800
Subject: [PATCH] add status show function dialog

---
 MTerm2/MTerm2CommDevView.cpp |   23 +++++++++++++++--------
 1 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/MTerm2/MTerm2CommDevView.cpp b/MTerm2/MTerm2CommDevView.cpp
index 04b3203..cf8583f 100644
--- a/MTerm2/MTerm2CommDevView.cpp
+++ b/MTerm2/MTerm2CommDevView.cpp
@@ -138,8 +138,8 @@
 //	ON_BN_CLICKED(IDC_BUTTON_CLEAR_STAT, &CMTerm2CommDevView::OnBnClickedButtonClearStat)
 //	ON_BN_CLICKED(IDC_BUTTON_READ, &CMTerm2CommDevView::OnBnClickedButtonRead)
 //	ON_BN_CLICKED(IDC_BUTTON11, &CMTerm2CommDevView::OnBnClickedButton11)
-//	ON_BN_CLICKED(IDC_BUTTON12, &CMTerm2CommDevView::OnBnClickedButton12)
-//	ON_BN_CLICKED(IDC_BUTTON13, &CMTerm2CommDevView::OnBnClickedButton13)
+	ON_BN_CLICKED(IDC_BUTTON12, &CMTerm2CommDevView::OnBnClickedButton12)
+	ON_BN_CLICKED(IDC_BUTTON13, &CMTerm2CommDevView::OnBnClickedButton13)
 END_MESSAGE_MAP()
 
 
@@ -989,7 +989,7 @@
 
 		///*
 		//WY
-		if (nStep == 1)
+		if (nStep == 0)
 		{
 			DataType = pDoc->MyKLink1.KLDataTypeWY;
 			DCount = 16;
@@ -1009,7 +1009,7 @@
 		}
 		///*
 		//WR
-		if (nStep==2)
+		if (nStep==0)
 		{
 			DataType = pDoc->MyKLink1.KLDataTypeWR;
 			DCount = 32;
@@ -1028,7 +1028,7 @@
 		}
 		//*/
 		//DT
-		if (nStep == 3)
+		if (nStep == 1)
 		{
 			DataType = pDoc->MyKLink1.KLDataTypeDT;
 			DCount = 96;
@@ -1048,9 +1048,9 @@
 		}
 		int ByteAddr = 0;
 		//SDT
-		if (nStep >= 4 && nStep <= 7)
+		if (nStep >= 2 && nStep <= 4)
 		{
-			int nBlock = nStep - 4;
+			int nBlock = nStep - 2;
 			DataType = pDoc->MyKLink1.KLDataTypeSDT;
 			ByteAddr = nBlock * 128;
 			DCount = 128;
@@ -1071,7 +1071,7 @@
 
 		nStep++;
 //		if (nStep == 2) { nStep = 3; }
-		if (nStep > 7) { nStep = 0; }
+		if (nStep > 4) { nStep = 0; }
 		if (nThisFailCount == 0)
 		{
 			MonitorSuccessCount++;
@@ -2098,5 +2098,12 @@
 	int r = pDoc->myHvSerialPort1.Close();
 	s1.Format(_T("%d %s"), r, pDoc->myHvSerialPort1.m_strResult);
 	SysLog(s1);
+
+	double REPO_RATE(0.0);
+	REPO_RATE = _tstof(_T(""));
+	s1.Format(_T("RAPO_RATE = %f \n"), REPO_RATE);
+	SysLog(s1);
+
+
 }
 

--
Gitblit v1.9.1