Commit 5d1b62466fedb29306976db73ce0acff130b36ba

Authored by xiemeng
1 parent 68062b2d

下载主窗口切换颜色提示当前状态

Showing 1 changed file with 4 additions and 6 deletions
@@ -210,16 +210,14 @@ DWORD WINAPI ReaderAndStatusProc(LPVOID lpV) @@ -210,16 +210,14 @@ DWORD WINAPI ReaderAndStatusProc(LPVOID lpV)
210 return 0; 210 return 0;
211 } 211 }
212 TTYInfo.rgbBGColor = RGB(255, 255, 255); 212 TTYInfo.rgbBGColor = RGB(255, 255, 255);
213 - OutputABuffer(hTTY, "进入下载模式\r\n");  
214 - TTYInfo.DownloadReday = TRUE;  
215 - if (strlen(TTYInfo.szFileName) != 0)  
216 - TransferFileTextStart(TTYInfo.szFileName);  
217 - else 213 + if (strlen(TTYInfo.szFileName) == 0)
218 { 214 {
219 TTYInfo.rgbBGColor = RGB(255, 201, 14); 215 TTYInfo.rgbBGColor = RGB(255, 201, 14);
220 - OutputABuffer(hTTY, "还未选择软件\r\n"); 216 + OutputABuffer(hTTY, "还未选择软件, 请选择BIN之后重新下压夹具\r\n");
221 return 0; 217 return 0;
222 } 218 }
  219 + OutputABuffer(hTTY, "PCB板检测正常!, 请点击Download\r\n");
  220 + TTYInfo.DownloadReday = TRUE;
223 } 221 }
224 else if (strstr(lpBuf, "Verify successful")) 222 else if (strstr(lpBuf, "Verify successful"))
225 { 223 {
Please register or login to post a comment