Untitled
unknown
c_cpp
24 days ago
1.2 kB
4
Indexable
Never
int setEMV_loadConfig(){ char file_cfg_emv[30] = { 0 }; //ROOTPATH //FILE_CFG_EMV_DAT #ifdef LOGS_CP BBVAMXDebug("setEMV_loadConfig"); #endif sprintf(file_cfg_emv, "%s%s", ROOTPATH, "CFG_EMV.DAT"); #ifdef LOGS_CP BBVAMXDebug("file_cfg_emv: %s", file_cfg_emv); #endif inUpdateFile_EMV((char *)file_cfg_emv); return 0; } int inUpdateFile_EMV(char* file) { int inRes = 0; unsigned char EMV_OPT = { 0x00 }; #ifdef LOGS_CP BBVAMXDebug("inUpdateFile_EMV"); #endif if (!verify_file(file)){ //if (!verify_file((char *)EMV_FILE)) #ifdef LOGS_CP BBVAMXDebug("CFG_EMV.DAT EXISTE"); #endif // set bytes EMV_OPT |= COUNTRY_CODE; //EMV_OPT |= TERM_ADD_CAP; EMV_OPT |= CONFIG_OPT; //EMV_OPT |= TERMINAL_TYPE; EMV_OPT |= TERMINAL_CAPABILITIES; //EMV_OPT |= TIMEOUT; inRes = inUpdateByte_EMV(file, EMV_OPT); } else{ #ifdef LOGS_CP BBVAMXDebug("CFG_EMV.DAT NO EXISTE"); #endif inRes = -1; } return inRes; }
Leave a Comment