added the changes from PM3 master.

added some code for the AWID26
This commit is contained in:
iceman1001
2014-12-22 15:14:05 +01:00
parent f5ed4d12de
commit 3bc3598e88
9 changed files with 343 additions and 220 deletions

View File

@@ -468,6 +468,9 @@ uint32_t PackBits(uint8_t start, uint8_t len, uint8_t* bits){
int i = start;
int j = len-1;
if (len > 32) {
return 0;
}
uint32_t tmp = 0;
for (; j >= 0; --j, ++i){
tmp |= bits[i] << j;