private void bAntQuery_Click(object sender, EventArgs e) //ANT setting { byte ant_sel = 0; //byte antH = 0; int status = 0; status = Reader1.GetAnt(ref ant_sel); if (status != 0) { lInfo.Items.Add("Get Ant settings failed!"); return; } lInfo.Items.Add("Get Ant settings success!"); //if ((ant_sel & 0x01) == 0x01) ant1.Checked = true; //else // ant1.Checked = false; //if ((ant_sel & 0x02) == 0x02) ant2.Checked = true; //else // ant2.Checked = false; //if ((ant_sel & 0x04) == 0x04) ant3.Checked = true; //else // ant3.Checked = false; //if ((ant_sel & 0x08) == 0x08) ant4.Checked = true; //else // ant4.Checked = false; }
private void bAntQuery() { byte ant_sel = 0; int status; status = Api.GetAnt(ref ant_sel); if (status != 0) { listView1.Items.Add("Get Ant settings failed!"); return; } listView1.Items.Add("Get Ant settings success!"); }