idk i give up (sending messages to BLE)

This commit is contained in:
shinichi
2020-09-09 18:29:26 +02:00
parent 2854684b86
commit 226bc265ef
2 changed files with 7 additions and 2 deletions

View File

@@ -140,10 +140,10 @@ namespace Hardware
antMessage[i] = 0xFF;
}
//antMessage[10] = (byte)Math.Max(Math.Min(Math.Round(percentage / 0.5), 255), 0);
antMessage[11] = 50; //hardcoded for testing
antMessage[11] = 100; //hardcoded for testing
byte checksum = 0;
for (int i = 0; i < antMessage.Length -1; i++)
for (int i = 0; i < antMessage.Length; i++)
{
checksum ^= antMessage[i];
}