From 303c6b6067f38d302fe9f95a3fa02e175764eb28 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 26 Jan 2024 12:45:23 +0100 Subject: [PATCH] style --- client/src/fileutils.c | 16 ++++++++-------- common/bruteforce.h | 4 ++-- common/iso15693tools.h | 24 ++++++++++++------------ doc/commands.json | 2 +- include/pm3_cmd.h | 2 +- 5 files changed, 24 insertions(+), 24 deletions(-) diff --git a/client/src/fileutils.c b/client/src/fileutils.c index 3f753ca04..560afef76 100644 --- a/client/src/fileutils.c +++ b/client/src/fileutils.c @@ -795,14 +795,14 @@ int saveFileWAVE(const char *preferredName, const int *data, size_t datalen) { .type = "WAVE", .format.tag = "fmt ", .format.size = sizeof(wave_info.format) - sizeof(wave_info.format.tag) - sizeof(wave_info.format.size), - .format.codec = 1, // PCM - .format.nb_channel = 1, - .format.sample_per_sec = 125000, // TODO update for other tag types - .format.byte_per_sec = 125000, // TODO update for other tag types - .format.block_align = 1, - .format.bit_per_sample = 8, - .audio_data.tag = "data", - .audio_data.size = datalen, + .format.codec = 1, // PCM + .format.nb_channel = 1, + .format.sample_per_sec = 125000, // TODO update for other tag types + .format.byte_per_sec = 125000, // TODO update for other tag types + .format.block_align = 1, + .format.bit_per_sample = 8, + .audio_data.tag = "data", + .audio_data.size = datalen, }; FILE *wave_file = fopen(fileName, "wb"); diff --git a/common/bruteforce.h b/common/bruteforce.h index ec15e3182..61d1107b3 100644 --- a/common/bruteforce.h +++ b/common/bruteforce.h @@ -63,8 +63,8 @@ typedef struct { uint64_t current_key; // Use 64 bit and truncate when needed. uint8_t mode; uint8_t charset[ - BF_CHARSET_DIGITS_SIZE - + BF_CHARSET_UPPERCASE_SIZE + BF_CHARSET_DIGITS_SIZE + + BF_CHARSET_UPPERCASE_SIZE ]; uint8_t charset_length; diff --git a/common/iso15693tools.h b/common/iso15693tools.h index 0f9445c4d..a18498a8d 100644 --- a/common/iso15693tools.h +++ b/common/iso15693tools.h @@ -73,14 +73,14 @@ static const int Iso15693FrameSOF[] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - -1, -1, -1, -1, - -1, -1, -1, -1, - 1, 1, 1, 1, - 1, 1, 1, 1 -}; + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + -1, -1, -1, -1, + -1, -1, -1, -1, + 1, 1, 1, 1, + 1, 1, 1, 1 + }; static const int Iso15693Logic0[] = { 1, 1, 1, 1, 1, 1, 1, 1, @@ -89,10 +89,10 @@ static const int Iso15693Logic0[] = { }; static const int Iso15693Logic1[] = { -1, -1, -1, -1, - -1, -1, -1, -1, - 1, 1, 1, 1, - 1, 1, 1, 1 -}; + -1, -1, -1, -1, + 1, 1, 1, 1, + 1, 1, 1, 1 + }; // EOF defined as // 1) logic '0' (8 pulses of 423.75kHz followed by unmodulated for 18.88us) diff --git a/doc/commands.json b/doc/commands.json index 0e4d58dbc..526544b2d 100644 --- a/doc/commands.json +++ b/doc/commands.json @@ -12375,6 +12375,6 @@ "metadata": { "commands_extracted": 713, "extracted_by": "PM3Help2JSON v1.00", - "extracted_on": "2024-01-26T08:13:47" + "extracted_on": "2024-01-26T11:38:54" } } diff --git a/include/pm3_cmd.h b/include/pm3_cmd.h index 50af516ec..fc26fb233 100644 --- a/include/pm3_cmd.h +++ b/include/pm3_cmd.h @@ -280,7 +280,7 @@ typedef struct { typedef struct { // 64KB SRAM -> 524288 bits(max sample num) < 2^30 - uint32_t samples : +uint32_t samples : LF_SAMPLES_BITS; bool realtime : 1; bool verbose : 1;