|
@@ -73,7 +73,7 @@ namespace Basic_Terminal
|
73
|
73
|
|
74
|
74
|
public void Serial_DataRecvFunction(object sender, SerialDataReceivedEventArgs e)
|
75
|
75
|
{
|
76
|
|
- if (Debug.RadioButton_ascii.Checked == true)
|
|
76
|
+ if (this.Debug.Created && Debug.RadioButton_ascii.Checked == true)
|
77
|
77
|
{
|
78
|
78
|
string data = serialPort.ReadExisting();
|
79
|
79
|
if (Debug.Created)
|
|
@@ -93,8 +93,11 @@ namespace Basic_Terminal
|
93
|
93
|
|
94
|
94
|
if (nLnegth > 0)
|
95
|
95
|
{
|
96
|
|
- string tmpSTR = Encoding.Default.GetString(btdata).TrimEnd('\0');
|
97
|
|
- Debug.Invoke(new StringSend(Debug.Data_Recv_Str), Str2hex(tmpSTR, true));
|
|
96
|
+ if (this.Debug.Created)
|
|
97
|
+ {
|
|
98
|
+ string tmpSTR = Encoding.Default.GetString(btdata).TrimEnd('\0');
|
|
99
|
+ Debug.Invoke(new StringSend(Debug.Data_Recv_Str), Str2hex(tmpSTR, true));
|
|
100
|
+ }
|
98
|
101
|
data_Handler.Recv_dataCheck(this.fileDownload, btdata);
|
99
|
102
|
|
100
|
103
|
// 이부분에서 데이타 처리하는 부분으로 전송하여 사용하면 됨
|
|
@@ -177,5 +180,10 @@ namespace Basic_Terminal
|
177
|
180
|
//this.serialPort.Write(tempdata.ToString());
|
178
|
181
|
|
179
|
182
|
}
|
|
183
|
+ public void debug_hextoasciiConvert()
|
|
184
|
+ {
|
|
185
|
+ if(this.Debug.Created)
|
|
186
|
+ this.Debug.hex_to_ascii_radiobuttonConvert();
|
|
187
|
+ }
|
180
|
188
|
}
|
181
|
189
|
}
|