Hi All,
Bit of Bizzar question but I have some data that I have to logical '&' with a mask
to allow the data to be read off correctly. The issue is in the below code
if ((Hexvalue2 & 0x0008) == 0)
{
MessageBox.Show("hello bit 4 not set");
label10.Text = " Status-";
label9.Text += "False";
}
else
{
MessageBox.Show("bit 4 set");
label10.Text = "Status-";
label9.Text += "True";
}
I am pretty sure this is correct as I am doing it right as I have done similar elsewhere with success which means the bit is set in the byte I am reading in. I now have a giant question mark over my head, I am testing properly am I not?
Glenn