fix downloading lf config
This commit is contained in:
1 parent
b6dcfbf078
commit
393d998ad9
2 files changed
+3
-6
No files matched your search
+2
-4
@@ -726,10 +726,8 @@ static void PacketReceived(PacketCommandNG *packet) {
|
||||
break;
|
||||
}
|
||||
case CMD_LF_SAMPLING_GET_CONFIG: {
|
||||
sample_config *c;
|
||||
c = getSamplingConfig();
|
||||
Dbprintf("CMD_LF_SAMPLING_GET_CONFIG - before answer");
|
||||
reply_ng(CMD_LF_SAMPLING_GET_CONFIG, PM3_SUCCESS, (uint8_t *)c, sizeof(sample_config));
|
||||
sample_config *config = getSamplingConfig();
|
||||
reply_ng(CMD_LF_SAMPLING_GET_CONFIG, PM3_SUCCESS, (uint8_t *)config, sizeof(sample_config));
|
||||
break;
|
||||
}
|
||||
case CMD_LF_SAMPLING_SET_CONFIG: {
|
||||
|
||||
+1
-2
@@ -471,8 +471,7 @@ int lf_getconfig(sample_config *config) {
|
||||
PrintAndLogEx(WARNING, "command execution time out");
|
||||
return PM3_ETIMEOUT;
|
||||
}
|
||||
|
||||
config = (sample_config *) resp.data.asBytes;
|
||||
memcpy(config, resp.data.asBytes, sizeof(sample_config));
|
||||
return PM3_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user