- int startIdx = indala26decode(DemodBuffer, &size, &invert);
- if (startIdx < 0 || size > 224) {
- if (g_debugMode) PrintAndLog("Error2: %i",startIdx);
- return -1;
+ int startIdx = indala64decode(DemodBuffer, &size, &invert);
+ if (startIdx < 0 || size != 64) {
+ // try 224 indala
+ invert = 0;
+ size = DemodBufferLen;
+ startIdx = indala224decode(DemodBuffer, &size, &invert);
+ if (startIdx < 0 || size != 224) {
+ if (g_debugMode) PrintAndLog("Error2: %i",startIdx);
+ return -1;
+ }