mirror of
https://github.com/Queercon/QC14-Badge-Webview.git
synced 2025-08-14 18:47:38 -07:00
CRC should be ints or hex..not either or.. to int it is
This commit is contained in:
parent
2ecf26bc89
commit
eba14c8b1d
1 changed files with 2 additions and 1 deletions
|
@ -204,8 +204,9 @@ namespace qcbadge.Controllers
|
|||
byte crc8res = (byte)(recbytes[0] ^ recbytes[1]);
|
||||
System.Diagnostics.Debug.WriteLine("CRC the byte: " + crc8res);
|
||||
String crcFinal = advertData.Substring(26, 2);
|
||||
int crcFinalInt = Convert.ToInt32(crcFinal, 16);
|
||||
|
||||
if(crcFinal.Equals(crc8res))
|
||||
if (crcFinalInt == crc8res)
|
||||
{
|
||||
String qcData = advertData.Substring(6, 22);
|
||||
System.Diagnostics.Debug.WriteLine(qcData);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue