new icons

This commit is contained in:
Jake Visser 2017-07-16 14:26:04 -07:00
commit d4c6f419a0
15 changed files with 7 additions and 5 deletions

View file

@ -176,17 +176,19 @@ namespace qcbadge.Controllers
System.Diagnostics.Debug.WriteLine(advertData); System.Diagnostics.Debug.WriteLine(advertData);
} }
String header = "0x0201040319DC190FFFD304"; //String header = "0x0201040319DC190FFFD304";
String footer = "090841524F5947424956"; //String footer = "090841524F5947424956";
if(advertData.StartsWith(header) && advertData.EndsWith(footer)) String header = "0xD304";
if (advertData.StartsWith(header))
{ {
//http://tomeko.net/online_tools/hex_to_base64.php?lang=en //http://tomeko.net/online_tools/hex_to_base64.php?lang=en
//for base64 convert //for base64 convert
String crcData = advertData.Substring(24, 18); String crcData = advertData.Substring(2, 18);
System.Diagnostics.Debug.WriteLine("CRC to check: " + crcData.ToString()); System.Diagnostics.Debug.WriteLine("CRC to check: " + crcData.ToString());
ushort crcrsp = CCITT_CRC16(crcData); ushort crcrsp = CCITT_CRC16(crcData);
System.Diagnostics.Debug.WriteLine("CRC resp: " + crcrsp.ToString()); System.Diagnostics.Debug.WriteLine("CRC resp: " + crcrsp.ToString());
@ -200,7 +202,7 @@ namespace qcbadge.Controllers
String qcData = advertData.Substring(24, 20); String qcData = advertData.Substring(2, 20);
System.Diagnostics.Debug.WriteLine(qcData); System.Diagnostics.Debug.WriteLine(qcData);
String badgeIdStr = qcData.Substring(0, 4); String badgeIdStr = qcData.Substring(0, 4);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB