make style

This commit is contained in:
Philippe Teuwen 2019-08-11 23:53:45 +02:00
commit 47b60d84de
4 changed files with 18 additions and 18 deletions

View file

@ -1501,21 +1501,21 @@ int doIClassSimulation(int simulationMode, uint8_t *reader_mac_buf) {
goto send; goto send;
default : { default : {
if (simulationMode == MODE_FULLSIM) { // 0x0C if (simulationMode == MODE_FULLSIM) { // 0x0C
//Read block //Read block
//Take the data... //Take the data...
memcpy(data_generic_trace, emulator + (receivedCmd[1] << 3), 8); memcpy(data_generic_trace, emulator + (receivedCmd[1] << 3), 8);
AddCrc(data_generic_trace, 8); AddCrc(data_generic_trace, 8);
trace_data = data_generic_trace; trace_data = data_generic_trace;
trace_data_size = 10; trace_data_size = 10;
CodeIClassTagAnswer(trace_data, trace_data_size); CodeIClassTagAnswer(trace_data, trace_data_size);
memcpy(modulated_response, ToSend, ToSendMax); memcpy(modulated_response, ToSend, ToSendMax);
modulated_response_size = ToSendMax; modulated_response_size = ToSendMax;
goto send; goto send;
} }
break; break;
} }
}//swith }//swith
}// if 4 }// if 4
} else if (receivedCmd[0] == ICLASS_CMD_SELECT) { // 0x81 } else if (receivedCmd[0] == ICLASS_CMD_SELECT) { // 0x81
// Reader selects anticollission CSN. // Reader selects anticollission CSN.
// Tag sends the corresponding real CSN // Tag sends the corresponding real CSN

View file

@ -2614,7 +2614,7 @@ static int CmdT55xxSetDeviceConfig(const char *Cmd) {
//Validations //Validations
if (errors || cmdp == 0) return usage_lf_deviceconfig(); 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) { if (set_defaults) {
// fixed bit length // fixed bit length