chg: allow to download ´lf config´ settings to client
This commit is contained in:
@@ -721,10 +721,17 @@ static void PacketReceived(PacketCommandNG *packet) {
|
||||
setT55xxConfig(packet->oldarg[0], (t55xx_configurations_t *) packet->data.asBytes);
|
||||
break;
|
||||
}
|
||||
case CMD_LF_SAMPLING_GET_CONFIG: {
|
||||
case CMD_LF_SAMPLING_PRINT_CONFIG: {
|
||||
printConfig();
|
||||
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));
|
||||
break;
|
||||
}
|
||||
case CMD_LF_SAMPLING_SET_CONFIG: {
|
||||
sample_config c;
|
||||
memcpy(&c, packet->data.asBytes, sizeof(sample_config));
|
||||
|
||||
@@ -81,7 +81,7 @@ void setSamplingConfig(sample_config *sc) {
|
||||
printConfig();
|
||||
}
|
||||
|
||||
sample_config *getSamplingConfig() {
|
||||
sample_config *getSamplingConfig(void) {
|
||||
return &config;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user