chg: allow to download ´lf config´ settings to client

This commit is contained in:
iceman1001 2020-03-05 11:16:05 +01:00
commit b6dcfbf078
5 changed files with 32 additions and 4 deletions

View file

@ -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));