25.11.2014 Views

o_197jmc471vk31iah1ofmlto10toa.pdf

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

if(((CButton*)w->GetDlgItem(IDC_radio_Wireless))->GetCheck() == BST_CHECKED)<br />

{<br />

w->m_edt_State.ShowWindow(false);<br />

w->m_edt_State.FlashText(false);<br />

}<br />

for(int i = 0 ; i < 89 ; i+=9)<br />

{<br />

if(w->bReceive_Flag == 0)<br />

{<br />

w->m_edt_Heart_Value.SetWindowTextW(L"");<br />

w->m_edt_SYS_value.SetWindowTextW(L"");<br />

w->m_edt_DIA_value.SetWindowTextW(L"");<br />

break;<br />

}<br />

unsigned char ucTemp; // 判 斷 封 包 是 否 正 確<br />

ucTemp = ucData[i+1] + ucData[i+2] + ucData[i+3] + ucData[i+4]+ ucData[i+5];<br />

if( (ucData[i]==0x4E) && (ucTemp == ucData[i+6]) && (ucData[i+7]==0x0A) )<br />

{<br />

TCHAR RESP_LOG[256];<br />

wsprintf(RESP_LOG,L"%d,%d\r\n",ucData[i+2],ucData[i+3]); // 寫 入 log 檔<br />

w->onWriteLog1(RESP_LOG);

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!