diff --git a/armsrc/appmain.c b/armsrc/appmain.c index 6de04383b..7aa2f9053 100644 --- a/armsrc/appmain.c +++ b/armsrc/appmain.c @@ -887,8 +887,7 @@ void UsbPacketReceived(uint8_t *packet, int len) { break; case CMD_EMV_DUMP_CARD: EMVdumpcard(); - break; -/* + break; case CMD_EMV_READ_RECORD: EMVReadRecord(c->arg[0], c->arg[1], NULL); break; @@ -904,7 +903,6 @@ void UsbPacketReceived(uint8_t *packet, int len) { case CMD_EMV_FUZZ_RATS: EMVFuzz_RATS(c->arg[0],c->d.asBytes); break; - */ #endif #ifdef WITH_ICLASS // Makes use of ISO14443a FPGA Firmware diff --git a/armsrc/apps.h b/armsrc/apps.h index 9a6e3c2de..6efb6095a 100644 --- a/armsrc/apps.h +++ b/armsrc/apps.h @@ -246,7 +246,6 @@ extern void EMVSelectAID(uint8_t *AID, uint8_t AIDlen, emvcard* inputcard); extern void EMVClone(uint8_t maxsfi, uint8_t maxrecord); extern void EMVSim(); extern void EMVTest(); -extern void SimulateEMVcard(); #ifdef __cplusplus } diff --git a/armsrc/emvcmd.c b/armsrc/emvcmd.c index 76e467ba0..dd57fe1ee 100644 --- a/armsrc/emvcmd.c +++ b/armsrc/emvcmd.c @@ -12,7 +12,7 @@ static emvcard currentcard; //use to hold emv tags for the reader/card during communications -void EMVTest() +void EMVTest(void) { uint8_t rats[0x0b] = {0x0b,0x78,0x80,0x81,0x02,0x4b,0x4f,0x4e,0x41, 0x14, 0x11}; EMVFuzz_RATS(0xb, rats); @@ -132,7 +132,7 @@ void EMVSelectAID(uint8_t *AID, uint8_t AIDlen, emvcard* inputcard) LEDsoff(); } -void EMVSelectPPSE() +void EMVSelectPPSE(void) { while(true) { if(!emv_selectPPSE()) { @@ -224,7 +224,7 @@ int EMVGenerateAC(uint8_t refcontrol, emvcard* inputcard) //function to perform paywave transaction //takes in TTQ, amount authorised, unpredicable number and transaction currency code -int EMV_PaywaveTransaction() +int EMV_PaywaveTransaction(void) { uint8_t *resp = BigBuf_malloc(256); tlvtag temptag; @@ -332,7 +332,7 @@ int EMV_PaywaveTransaction() return 0; } -int EMV_PaypassTransaction() +int EMV_PaypassTransaction(void) { uint8_t *resp = BigBuf_malloc(256); tlvtag temptag; //buffer for decoded tags @@ -449,7 +449,7 @@ int EMV_PaypassTransaction() return 0; } -void EMVTransaction() +void EMVTransaction(void) { //params uint8_t uid[10] = {0x00}; @@ -651,7 +651,7 @@ void EMVClone(uint8_t maxsfi, uint8_t maxrecord) // Main loop of simulated tag: receive commands from reader, decide what // response to send, and send it. //----------------------------------------------------------------------------- -void SimulateEMVcard() +void EMVSim(void) { /*