From 47b60d84de4d9211f0a0ae0a25deb35147c5fbe9 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sun, 11 Aug 2019 23:53:45 +0200 Subject: [PATCH] make style --- armsrc/iclass.c | 30 +++++++++++++++--------------- client/cmdhf.c | 2 +- client/cmdlft55xx.c | 2 +- client/scripts/dumptoemul.lua | 2 +- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/armsrc/iclass.c b/armsrc/iclass.c index 26201842a..c8504e5ed 100644 --- a/armsrc/iclass.c +++ b/armsrc/iclass.c @@ -1501,21 +1501,21 @@ int doIClassSimulation(int simulationMode, uint8_t *reader_mac_buf) { goto send; default : { if (simulationMode == MODE_FULLSIM) { // 0x0C - //Read block - //Take the data... - memcpy(data_generic_trace, emulator + (receivedCmd[1] << 3), 8); - AddCrc(data_generic_trace, 8); - trace_data = data_generic_trace; - trace_data_size = 10; - CodeIClassTagAnswer(trace_data, trace_data_size); - memcpy(modulated_response, ToSend, ToSendMax); - modulated_response_size = ToSendMax; - goto send; - } - break; - } - }//swith - }// if 4 + //Read block + //Take the data... + memcpy(data_generic_trace, emulator + (receivedCmd[1] << 3), 8); + AddCrc(data_generic_trace, 8); + trace_data = data_generic_trace; + trace_data_size = 10; + CodeIClassTagAnswer(trace_data, trace_data_size); + memcpy(modulated_response, ToSend, ToSendMax); + modulated_response_size = ToSendMax; + goto send; + } + break; + } + }//swith + }// if 4 } else if (receivedCmd[0] == ICLASS_CMD_SELECT) { // 0x81 // Reader selects anticollission CSN. // Tag sends the corresponding real CSN diff --git a/client/cmdhf.c b/client/cmdhf.c index 7af98e46f..a6c5ea11e 100644 --- a/client/cmdhf.c +++ b/client/cmdhf.c @@ -123,7 +123,7 @@ int CmdHFSearch(const char *Cmd) { } } - + //if (IfPm3Felica()) { // ans = CmdHFFelicaReader("s"); // if (ans) { diff --git a/client/cmdlft55xx.c b/client/cmdlft55xx.c index 5d26228e2..d5f66496d 100644 --- a/client/cmdlft55xx.c +++ b/client/cmdlft55xx.c @@ -2614,7 +2614,7 @@ static int CmdT55xxSetDeviceConfig(const char *Cmd) { //Validations if (errors || cmdp == 0) return usage_lf_deviceconfig(); - t55xx_configurations_t configurations = {{{0},{0},{0},{0}}}; + t55xx_configurations_t configurations = {{{0}, {0}, {0}, {0}}}; if (set_defaults) { // fixed bit length diff --git a/client/scripts/dumptoemul.lua b/client/scripts/dumptoemul.lua index 96164b92f..80653a14a 100644 --- a/client/scripts/dumptoemul.lua +++ b/client/scripts/dumptoemul.lua @@ -108,7 +108,7 @@ local function main(args) if infile == nil then return oops('Could not read file ', input) end - + local dumpdata = readdump(infile) -- The hex-data is now in ascii-format, if dumpdata == NIL then return oops('Dumpfle not loaded') end