mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
make style
This commit is contained in:
parent
cb20d93448
commit
3f9ddf9b29
7 changed files with 70 additions and 69 deletions
|
@ -996,7 +996,7 @@ static int Get14443bAnswerFromTag(uint8_t *response, uint16_t max_len, int timeo
|
||||||
|
|
||||||
if (Handle14443bSamplesFromTag(ci, cq)) {
|
if (Handle14443bSamplesFromTag(ci, cq)) {
|
||||||
|
|
||||||
*eof_time = dma_start_time + (samples ) - DELAY_TAG_TO_ARM; // end of EOF
|
*eof_time = dma_start_time + (samples) - DELAY_TAG_TO_ARM; // end of EOF
|
||||||
|
|
||||||
if (Demod.len > Demod.max_len) {
|
if (Demod.len > Demod.max_len) {
|
||||||
ret = -2; // overflow
|
ret = -2; // overflow
|
||||||
|
@ -1854,7 +1854,7 @@ void SendRawCommand14443B_Ex(PacketCommandNG *c) {
|
||||||
int status;
|
int status;
|
||||||
uint32_t sendlen = sizeof(iso14b_card_select_t);
|
uint32_t sendlen = sizeof(iso14b_card_select_t);
|
||||||
iso14b_card_select_t card;
|
iso14b_card_select_t card;
|
||||||
memset((void*)&card, 0x00, sizeof(card));
|
memset((void *)&card, 0x00, sizeof(card));
|
||||||
|
|
||||||
if ((param & ISO14B_SELECT_STD) == ISO14B_SELECT_STD) {
|
if ((param & ISO14B_SELECT_STD) == ISO14B_SELECT_STD) {
|
||||||
status = iso14443b_select_card(&card);
|
status = iso14443b_select_card(&card);
|
||||||
|
|
|
@ -621,7 +621,7 @@ static void print_ct_general_info(void *vcard) {
|
||||||
iso14b_cts_card_select_t card;
|
iso14b_cts_card_select_t card;
|
||||||
memcpy(&card, (iso14b_cts_card_select_t *)vcard, sizeof(iso14b_cts_card_select_t));
|
memcpy(&card, (iso14b_cts_card_select_t *)vcard, sizeof(iso14b_cts_card_select_t));
|
||||||
|
|
||||||
uint32_t uid32 = (card.uid[0] |card.uid[1] << 8 |card.uid[2] << 16 | card.uid[3] << 24);
|
uint32_t uid32 = (card.uid[0] | card.uid[1] << 8 | card.uid[2] << 16 | card.uid[3] << 24);
|
||||||
PrintAndLogEx(SUCCESS, "ASK C-Ticket");
|
PrintAndLogEx(SUCCESS, "ASK C-Ticket");
|
||||||
PrintAndLogEx(SUCCESS, " UID: " _GREEN_("%s") " ( " _YELLOW_("%010u") " )", sprint_hex(card.uid, sizeof(card.uid)), uid32);
|
PrintAndLogEx(SUCCESS, " UID: " _GREEN_("%s") " ( " _YELLOW_("%010u") " )", sprint_hex(card.uid, sizeof(card.uid)), uid32);
|
||||||
PrintAndLogEx(SUCCESS, " Product Code: %02X", card.pc);
|
PrintAndLogEx(SUCCESS, " Product Code: %02X", card.pc);
|
||||||
|
@ -1083,7 +1083,7 @@ static int CmdHF14BDump(const char *Cmd) {
|
||||||
int fnlen = 0;
|
int fnlen = 0;
|
||||||
char filename[FILE_PATH_SIZE] = {0};
|
char filename[FILE_PATH_SIZE] = {0};
|
||||||
char *fptr = filename;
|
char *fptr = filename;
|
||||||
CLIParamStrToBuf(arg_get_str(ctx, 1), (uint8_t*)filename, FILE_PATH_SIZE, &fnlen);
|
CLIParamStrToBuf(arg_get_str(ctx, 1), (uint8_t *)filename, FILE_PATH_SIZE, &fnlen);
|
||||||
CLIParserFree(ctx);
|
CLIParserFree(ctx);
|
||||||
|
|
||||||
iso14b_card_select_t card;
|
iso14b_card_select_t card;
|
||||||
|
|
|
@ -253,14 +253,14 @@ main_loop(char *script_cmds_file, char *script_cmd, bool stayInCommandLoop) {
|
||||||
session.history_path = NULL;
|
session.history_path = NULL;
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
# if defined(_WIN32)
|
# if defined(_WIN32)
|
||||||
// SetConsoleCtrlHandler((PHANDLER_ROUTINE)terminate_handler, true);
|
// SetConsoleCtrlHandler((PHANDLER_ROUTINE)terminate_handler, true);
|
||||||
# else
|
# else
|
||||||
struct sigaction action;
|
struct sigaction action;
|
||||||
memset(&action, 0, sizeof(action));
|
memset(&action, 0, sizeof(action));
|
||||||
action.sa_handler = &terminate_handler;
|
action.sa_handler = &terminate_handler;
|
||||||
sigaction(SIGINT, &action, &old_action);
|
sigaction(SIGINT, &action, &old_action);
|
||||||
# endif
|
# endif
|
||||||
rl_catch_signals = 1;
|
rl_catch_signals = 1;
|
||||||
rl_set_signals();
|
rl_set_signals();
|
||||||
read_history(session.history_path);
|
read_history(session.history_path);
|
||||||
|
|
|
@ -1691,8 +1691,8 @@ read_variable_length(const BYTE **ip, const BYTE *lencheck,
|
||||||
return length;
|
return length;
|
||||||
}
|
}
|
||||||
|
|
||||||
int LZ4_decompress_generic(const char* const src, char* const dst, int srcSize, int outputSize, endCondition_directive endOnInput, earlyEnd_directive partialDecoding,
|
int LZ4_decompress_generic(const char *const src, char *const dst, int srcSize, int outputSize, endCondition_directive endOnInput, earlyEnd_directive partialDecoding,
|
||||||
dict_directive dict, const BYTE* const lowPrefix, const BYTE* const dictStart, const size_t dictSize );
|
dict_directive dict, const BYTE *const lowPrefix, const BYTE *const dictStart, const size_t dictSize);
|
||||||
|
|
||||||
/*! LZ4_decompress_generic() :
|
/*! LZ4_decompress_generic() :
|
||||||
* This generic decompression function covers all use cases.
|
* This generic decompression function covers all use cases.
|
||||||
|
|
|
@ -75,7 +75,8 @@ Check column "offline" for their availability.
|
||||||
|`data samples `|N |`[512 - 40000] -- Get raw samples for graph window (GraphBuffer)`
|
|`data samples `|N |`[512 - 40000] -- Get raw samples for graph window (GraphBuffer)`
|
||||||
|`data save `|Y |`Save trace (from graph window)`
|
|`data save `|Y |`Save trace (from graph window)`
|
||||||
|`data setgraphmarkers `|Y |`[orange_marker] [blue_marker] (in graph window)`
|
|`data setgraphmarkers `|Y |`[orange_marker] [blue_marker] (in graph window)`
|
||||||
|`data scale `|Y |`<int> -- Set cursor display scale in carrier frequency expressed in kHz`
|
|`data timescale `|Y |`Set a timescale to get a differential reading between the yellow and purple markers as time duration
|
||||||
|
`
|
||||||
|`data setdebugmode `|Y |`<0|1|2> -- Set Debugging Level on client side`
|
|`data setdebugmode `|Y |`<0|1|2> -- Set Debugging Level on client side`
|
||||||
|`data shiftgraphzero `|Y |`<shift> -- Shift 0 for Graphed wave + or - shift value`
|
|`data shiftgraphzero `|Y |`<shift> -- Shift 0 for Graphed wave + or - shift value`
|
||||||
|`data dirthreshold `|Y |`<thres up> <thres down> -- Max rising higher up-thres/ Min falling lower down-thres, keep rest as prev.`
|
|`data dirthreshold `|Y |`<thres up> <thres down> -- Max rising higher up-thres/ Min falling lower down-thres, keep rest as prev.`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue