This commit is contained in:
iceman1001 2019-12-22 12:51:40 +01:00
commit ea5680dba8
5 changed files with 41 additions and 41 deletions

View file

@ -1925,7 +1925,7 @@ int CmdSave(const char *Cmd) {
if (errors || cmdp == 0) return usage_data_save(); if (errors || cmdp == 0) return usage_data_save();
if ( as_wave ) if (as_wave)
return saveFileWAVE(filename, GraphBuffer, GraphTraceLen); return saveFileWAVE(filename, GraphBuffer, GraphTraceLen);
else else
return saveFilePM3(filename, GraphBuffer, GraphTraceLen); return saveFilePM3(filename, GraphBuffer, GraphTraceLen);

View file

@ -71,7 +71,7 @@ static int lto_send_cmd_raw(uint8_t *cmd, uint8_t len, uint8_t *response, uint16
static int topaz_select(uint8_t *id_response, uint8_t id_len, bool verbose) { static int topaz_select(uint8_t *id_response, uint8_t id_len, bool verbose) {
// Todo: implement anticollision // Todo: implement anticollision
uint8_t resp[] = {0,0}; uint8_t resp[] = {0, 0};
uint16_t resp_len; uint16_t resp_len;
uint8_t wupa_cmd[] = {LTO_REQ_STANDARD}; uint8_t wupa_cmd[] = {LTO_REQ_STANDARD};
uint8_t select_cmd[] = {LTO_SELECT, 0x20}; uint8_t select_cmd[] = {LTO_SELECT, 0x20};
@ -139,12 +139,12 @@ int infoLTO(bool verbose) {
topaz_select(serial_number, serial_len, verbose); topaz_select(serial_number, serial_len, verbose);
lto_switch_off_field(); lto_switch_off_field();
/* /*
-- "hf 14a raw -a -p -b 7 45" -- "hf 14a raw -a -p -b 7 45"
-- "hf 14a raw -c -p 9320" -- "hf 14a raw -c -p 9320"
-- "hf 14a raw -c -p 9370%s", serial_number -- "hf 14a raw -c -p 9370%s", serial_number
-- "disconnect" -- "disconnect"
SendCommandNG(CMD_HF_THINFILM_READ, NULL, 0); SendCommandNG(CMD_HF_THINFILM_READ, NULL, 0);
@ -166,7 +166,7 @@ int infoLTO(bool verbose) {
} }
return resp.status; return resp.status;
*/ */
return PM3_SUCCESS; return PM3_SUCCESS;
} }

View file

@ -414,7 +414,7 @@ int saveFileWAVE(const char *preferredName, int *data, size_t datalen) {
wave_info.samplerate = 125000; wave_info.samplerate = 125000;
wave_info.channels = 1; wave_info.channels = 1;
wave_info.format = SF_FORMAT_WAV | SF_FORMAT_PCM_U8; wave_info.format = SF_FORMAT_WAV | SF_FORMAT_PCM_U8;
SNDFILE* wave_file = sf_open(fileName, SFM_WRITE, &wave_info); SNDFILE *wave_file = sf_open(fileName, SFM_WRITE, &wave_info);
if (!wave_file) { if (!wave_file) {
PrintAndLogEx(WARNING, "file not found or locked. "_YELLOW_("'%s'"), fileName); PrintAndLogEx(WARNING, "file not found or locked. "_YELLOW_("'%s'"), fileName);