add: a experimental lualib, unstable.

fix: Introduced a wrong variable name due to "cut & paste" before, now fixed.
This commit is contained in:
iceman1001
2015-03-12 09:50:22 +01:00
parent 04a6113fb5
commit 5ff3c4017b
2 changed files with 105 additions and 2 deletions

View File

@@ -1465,7 +1465,7 @@ void CopyIndala224toT55x7(int uid1, int uid2, int uid3, int uid4, int uid5, int
int DemodPCF7931(uint8_t **outBlocks) {
uint8_t BitStream[256] = {0x00};
uint8_t Blocks[8][16] = [0x00};
uint8_t Blocks[8][16];
uint8_t *dest = BigBuf_get_addr();
int GraphTraceLen = BigBuf_max_traceLen();
int i, j, lastval, bitidx, half_switch;
@@ -1496,7 +1496,7 @@ int DemodPCF7931(uint8_t **outBlocks) {
}
else {
while(i < GraphTraceLen) {
if( !(dest[i] < dest[i-1]) && v[i] < lmin)
if( !(dest[i] < dest[i-1]) && dest[i] < lmin)
break;
i++;
}