#define MAX_NUM (unsigned char)0xff
#define CNT (unsigned char)0x08
const unsigned char Tab[CNT] = {0x01, 0x02, 0x04 ,0x08, 0x10, 0x20, 0x40, 0x80};
unsigned char u8Loop = 0;
for (; u8Loop < CNT; u8Loop++)
{
if (0 != err_pra[u8Loop].err_name_date)
{
if (Tab[u8Loop] == (err_chl_date[u8Loop].chl_date & Tab[u8Loop]))
{
g_AckBuf[35] |= ab[u8Loop];
}
else
{
g_AckBuf[35] &= (MAX_NUM - ab[u8Loop]);
}
}
else
{
g_AckBuf[35] &= (MAX_NUM - ab[u8Loop]);
}
} |