mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-10 10:11:58 +08:00
fix downloading lf config
This commit is contained in:
parent
b6dcfbf078
commit
393d998ad9
2 changed files with 3 additions and 6 deletions
|
@ -726,10 +726,8 @@ static void PacketReceived(PacketCommandNG *packet) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CMD_LF_SAMPLING_GET_CONFIG: {
|
case CMD_LF_SAMPLING_GET_CONFIG: {
|
||||||
sample_config *c;
|
sample_config *config = getSamplingConfig();
|
||||||
c = getSamplingConfig();
|
reply_ng(CMD_LF_SAMPLING_GET_CONFIG, PM3_SUCCESS, (uint8_t *)config, sizeof(sample_config));
|
||||||
Dbprintf("CMD_LF_SAMPLING_GET_CONFIG - before answer");
|
|
||||||
reply_ng(CMD_LF_SAMPLING_GET_CONFIG, PM3_SUCCESS, (uint8_t *)c, sizeof(sample_config));
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CMD_LF_SAMPLING_SET_CONFIG: {
|
case CMD_LF_SAMPLING_SET_CONFIG: {
|
||||||
|
|
|
@ -471,8 +471,7 @@ int lf_getconfig(sample_config *config) {
|
||||||
PrintAndLogEx(WARNING, "command execution time out");
|
PrintAndLogEx(WARNING, "command execution time out");
|
||||||
return PM3_ETIMEOUT;
|
return PM3_ETIMEOUT;
|
||||||
}
|
}
|
||||||
|
memcpy(config, resp.data.asBytes, sizeof(sample_config));
|
||||||
config = (sample_config *) resp.data.asBytes;
|
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue