Code: Select all
if (data[7] == 0xBC)
{
data[7] = 0xBD;
}
else {
data[7] = 0xBC;
}
return true;
End result is that data[7] alternates between 0xBD and 0xBC automatically.
Code: Select all
if (data[7] == 0xBC)
{
data[7] = 0xBD;
}
else {
data[7] = 0xBC;
}
return true;