use read instead of readcheck except to auth

This commit is contained in:
marshmellow42 2015-07-23 01:12:02 -04:00
commit 3ac22ee1cf
7 changed files with 82 additions and 62 deletions

View file

@ -1080,19 +1080,22 @@ void UsbPacketReceived(uint8_t *packet, int len)
emlSet(c->d.asBytes,c->arg[0], c->arg[1]);
break;
case CMD_ICLASS_WRITEBLOCK:
iClass_WriteBlock(c->arg[0], c->arg[1], c->d.asBytes);
iClass_WriteBlock(c->arg[0], c->d.asBytes);
break;
case CMD_ICLASS_READCHECK: // auth step 1
iClass_ReadCheck(c->arg[0], c->arg[1]);
break;
case CMD_ICLASS_READBLOCK:
iClass_ReadBlk(c->arg[0], c->arg[1]);
iClass_ReadBlk(c->arg[0]);
break;
case CMD_ICLASS_AUTHENTICATION:
case CMD_ICLASS_AUTHENTICATION: //check
iClass_Authentication(c->d.asBytes);
break;
case CMD_ICLASS_DUMP:
iClass_Dump(c->arg[0], c->arg[1], c->arg[2]);
iClass_Dump(c->arg[0], c->arg[1]);
break;
case CMD_ICLASS_CLONE:
iClass_Clone(c->arg[0], c->arg[1], c->arg[2], c->d.asBytes);
iClass_Clone(c->arg[0], c->arg[1], c->d.asBytes);
break;
#endif