mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
CHG: adjusted compiling for older devices
This commit is contained in:
parent
e885ec737d
commit
0bec6038b7
3 changed files with 10 additions and 2 deletions
|
@ -1591,11 +1591,11 @@ void T55xx_ChkPwds() {
|
||||||
|
|
||||||
|
|
||||||
uint8_t *pwds = BigBuf_get_EM_addr();
|
uint8_t *pwds = BigBuf_get_EM_addr();
|
||||||
bool use_flashmem = true;
|
|
||||||
uint16_t pwdCount = 0;
|
uint16_t pwdCount = 0;
|
||||||
uint32_t candidate = 0;
|
uint32_t candidate = 0;
|
||||||
|
|
||||||
#ifdef WITH_FLASH
|
#ifdef WITH_FLASH
|
||||||
|
bool use_flashmem = true;
|
||||||
if ( use_flashmem ) {
|
if ( use_flashmem ) {
|
||||||
BigBuf_Clear_EM();
|
BigBuf_Clear_EM();
|
||||||
uint16_t isok = 0;
|
uint16_t isok = 0;
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// Proxmark3 RDV40 Flash memory commands
|
// Proxmark3 RDV40 Flash memory commands
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#ifdef WITH_FLASH
|
||||||
|
|
||||||
#ifndef CMDFLASHMEM_H__
|
#ifndef CMDFLASHMEM_H__
|
||||||
#define CMDFLASHMEM_H__
|
#define CMDFLASHMEM_H__
|
||||||
|
|
||||||
|
@ -39,3 +41,5 @@ extern int CmdFlashMemSave(const char* cmd);
|
||||||
extern int CmdFlashMemWipe(const char *Cmd);
|
extern int CmdFlashMemWipe(const char *Cmd);
|
||||||
extern int CmdFlashMemInfo(const char *Cmd);
|
extern int CmdFlashMemInfo(const char *Cmd);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
|
@ -262,8 +262,12 @@ int EMVExchangeEx(EMVCommandChannel channel, bool ActivateField, bool LeaveField
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case ECC_CONTACT:
|
case ECC_CONTACT:
|
||||||
|
#ifdef WITH_SMARTCARD
|
||||||
//int ExchangeAPDUSC(uint8_t *datain, int datainlen, bool activateCard, bool leaveSignalON, uint8_t *dataout, int maxdataoutlen, int *dataoutlen);
|
//int ExchangeAPDUSC(uint8_t *datain, int datainlen, bool activateCard, bool leaveSignalON, uint8_t *dataout, int maxdataoutlen, int *dataoutlen);
|
||||||
res = ExchangeAPDUSC(data, (IncludeLe?6:5) + apdu.Lc, ActivateField, LeaveFieldON, Result, (int)MaxResultLen, (int *)ResultLen);
|
res = ExchangeAPDUSC(data, (IncludeLe?6:5) + apdu.Lc, ActivateField, LeaveFieldON, Result, (int)MaxResultLen, (int *)ResultLen);
|
||||||
|
#else
|
||||||
|
res = 1;
|
||||||
|
#endif
|
||||||
if (res) {
|
if (res) {
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue