From 917be92afcaac379c04b5d07bc1dc6f97b048683 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sun, 5 Jan 2025 14:27:14 +0100 Subject: [PATCH] typos --- client/src/cmdhfmf.c | 6 +++--- client/src/cmdlft55xx.c | 2 +- client/src/cmdtrace.c | 2 +- doc/ndef_type4a.md | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/client/src/cmdhfmf.c b/client/src/cmdhfmf.c index 36ebaf3c4..5a0724c8d 100644 --- a/client/src/cmdhfmf.c +++ b/client/src/cmdhfmf.c @@ -1117,7 +1117,7 @@ static int CmdHF14AMfRdSc(const char *Cmd) { } if (s >= MIFARE_4K_MAXSECTOR) { - PrintAndLogEx(WARNING, "Sector number must be less then 40"); + PrintAndLogEx(WARNING, "Sector number must be less than 40"); return PM3_EINVARG; } @@ -4492,7 +4492,7 @@ static int CmdHF14AMfEGetSc(const char *Cmd) { CLIParserFree(ctx); if (s >= MIFARE_4K_MAXSECTOR) { - PrintAndLogEx(WARNING, "Sector number must be less then 40"); + PrintAndLogEx(WARNING, "Sector number must be less than 40"); return PM3_EINVARG; } @@ -5556,7 +5556,7 @@ static int CmdHF14AMfCGetSc(const char *Cmd) { CLIParserFree(ctx); if (s >= MIFARE_4K_MAXSECTOR) { - PrintAndLogEx(WARNING, "Sector number must be less then 40"); + PrintAndLogEx(WARNING, "Sector number must be less than 40"); return PM3_EINVARG; } diff --git a/client/src/cmdlft55xx.c b/client/src/cmdlft55xx.c index 48c2fa7a7..4f5f6c3ca 100644 --- a/client/src/cmdlft55xx.c +++ b/client/src/cmdlft55xx.c @@ -4266,7 +4266,7 @@ static int CmdT55xxProtect(const char *Cmd) { return PM3_SUCCESS; } -// if the difference between a and b is less then or eq to d i.e. does a = b +/- d +// if the difference between a and b is less than or eq to d i.e. does a = b +/- d #define APPROX_EQ(a, b, d) ((abs(a - b) <= d) ? true : false) static uint8_t t55sniff_get_packet(const int *pulseBuffer, char *data, uint8_t width0, uint8_t width1, uint8_t tolerance) { diff --git a/client/src/cmdtrace.c b/client/src/cmdtrace.c index 569e13e23..c91f6a31b 100644 --- a/client/src/cmdtrace.c +++ b/client/src/cmdtrace.c @@ -146,7 +146,7 @@ static uint16_t extractChallenges(uint16_t tracepos, uint16_t traceLen, uint8_t uint16_t data_len = hdr->data_len; uint8_t *frame = hdr->frame; - // sanity check tracking position is less then available trace size + // sanity check tracking position is less than available trace size if (tracepos + TRACELOG_HDR_LEN + data_len + TRACELOG_PARITY_LEN(hdr) > traceLen) { PrintAndLogEx(DEBUG, "trace pos offset %"PRIu64 " larger than reported tracelen %u", tracepos + TRACELOG_HDR_LEN + data_len + TRACELOG_PARITY_LEN(hdr), diff --git a/doc/ndef_type4a.md b/doc/ndef_type4a.md index 5a5c2c1a1..3a76a3150 100644 --- a/doc/ndef_type4a.md +++ b/doc/ndef_type4a.md @@ -50,7 +50,7 @@ Result ### Step 2 Create the Compatibility Container file (CC File) The CC File is a standard file to store the needed NDEF information to find your NDEF records. This example will contrain the setup for a single NDEF record. -Note: You can define more then one NDEF data file if needed (not covered in this example) +Note: You can define more than one NDEF data file if needed (not covered in this example) Type : Standard data file FID : 01 <- File ID can be any uniqure File ID for this AID