From 1055df729e26f27e95dcd627e985e1463212111b Mon Sep 17 00:00:00 2001 From: jiwonRepair Date: Fri, 22 Aug 2025 16:35:09 +0900 Subject: [PATCH] feat: update to baudrate in ini file --- frmTD_JIG.vb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frmTD_JIG.vb b/frmTD_JIG.vb index a4d6b6e..52fffca 100644 --- a/frmTD_JIG.vb +++ b/frmTD_JIG.vb @@ -36,6 +36,7 @@ Public Class frmTD_JIG Public Title_Text As String Public AutoAgingCnt As Long Public CkbNoRun As Boolean + Public baudrate_ini As Integer Private txtPVSN As String Private SettingMeasure As String @@ -451,6 +452,8 @@ Public Class frmTD_JIG txbMinValue.Text = ConifgStr End If + baudrate_ini = Integer.Parse(ConifgStr.Split(","c).Last()) 'get last string in ini file + ParaComport = cboComPort.Text ParaScopeID = "USB0::0x2A8D::" & txbScopeID.Text & "::0::INSTR" @@ -844,7 +847,7 @@ WR_File_Error: If cmdSerialPort.IsOpen = False Then With cmdSerialPort .PortName = ParaComport - .BaudRate = 230400 + .BaudRate = baudrate_ini '230400 .DataBits = 8 .Parity = IO.Ports.Parity.None .StopBits = IO.Ports.StopBits.One