From 544fb30ce68ed401792f3219d61b8a026e05e0ad Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Tue, 23 Jul 2019 21:40:01 +0200 Subject: [PATCH] typos --- armsrc/iso14443a.c | 2 +- armsrc/iso15693.c | 2 +- armsrc/spiffs.c | 6 +++--- armsrc/spiffs.h | 2 +- client/cmdflashmemspiffs.c | 2 +- client/scripts/legic.lua | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/armsrc/iso14443a.c b/armsrc/iso14443a.c index 734513b54..a09978d7a 100644 --- a/armsrc/iso14443a.c +++ b/armsrc/iso14443a.c @@ -93,7 +93,7 @@ static uint32_t LastProxToAirDuration; // Sequence D: 11110000 modulation with subcarrier during first half // Sequence E: 00001111 modulation with subcarrier during second half // Sequence F: 00000000 no modulation with subcarrier -// Sequence COLL: 11111111 load modulation over the full bitlenght. +// Sequence COLL: 11111111 load modulation over the full bitlength. // Tricks the reader to think that multiple cards answer (at least one card with 1 and at least one card with 0). // READER TO CARD - miller // Sequence X: 00001100 drop after half a period diff --git a/armsrc/iso15693.c b/armsrc/iso15693.c index 374b2be23..e74ca972d 100644 --- a/armsrc/iso15693.c +++ b/armsrc/iso15693.c @@ -695,7 +695,7 @@ static void BuildInventoryResponse(uint8_t *cmdout, uint8_t *uid) { // speed ... 0 low speed, 1 hi speed // **recv will return you a pointer to the received data // If you do not need the answer use NULL for *recv[] -// return: lenght of received data +// return: length of received data // logging enabled int SendDataTag(uint8_t *send, int sendlen, bool init, int speed, uint8_t *outdata) { diff --git a/armsrc/spiffs.c b/armsrc/spiffs.c index 0fecc556c..1439bfd20 100644 --- a/armsrc/spiffs.c +++ b/armsrc/spiffs.c @@ -208,7 +208,7 @@ rdv40_spiffs_fsinfo info_of_spiffs() { fsinfo.blockSize = SPIFFS_CFG_LOG_BLOCK_SZ; fsinfo.pageSize = LOG_PAGE_SIZE; fsinfo.maxOpenFiles = RDV40_SPIFFS_MAX_FD; - fsinfo.maxPathLenght = SPIFFS_OBJ_NAME_LEN; + fsinfo.maxPathLength = SPIFFS_OBJ_NAME_LEN; if (SPIFFS_info(&fs, &fsinfo.totalBytes, &fsinfo.usedBytes) < 0) Dbprintf("errno %i\n", SPIFFS_errno(&fs)); fsinfo.freeBytes = fsinfo.totalBytes - fsinfo.usedBytes; @@ -532,7 +532,7 @@ void rdv40_spiffs_safe_print_fsinfos() { Dbprintf("* Filesystem Logical Page Size..........%d bytes", fsinfo.pageSize); Dbprintf("--"); Dbprintf("* Filesystem Max Open Files.............%d file descriptors", fsinfo.maxOpenFiles); - Dbprintf("* Filesystem Max Path Lenght............%d chars", fsinfo.maxPathLenght); + Dbprintf("* Filesystem Max Path Length............%d chars", fsinfo.maxPathLength); Dbprintf("--"); Dbprintf("Filesystem\tSize\tUsed\tAvailable\tUse%\tMounted on"); Dbprintf("spiffs\t%dB\t%dB\t%dB\t\t%d%\t/", fsinfo.totalBytes, fsinfo.usedBytes, fsinfo.freeBytes, @@ -580,7 +580,7 @@ void rdv40_spiffs_safe_print_tree(uint8_t banner) { void test_spiffs() { Dbprintf("---------------------------"); - Dbprintf("Testing SPIFFS functionning"); + Dbprintf("Testing SPIFFS operations"); Dbprintf("---------------------------"); Dbprintf("(all test are made using lazy safetylevel)"); Dbprintf("* Mounting filesystem (lazy)......."); diff --git a/armsrc/spiffs.h b/armsrc/spiffs.h index b9308f4dd..e79783402 100644 --- a/armsrc/spiffs.h +++ b/armsrc/spiffs.h @@ -26,7 +26,7 @@ typedef struct rdv40_spiffs_fsinfo { uint32_t blockSize; uint32_t pageSize; uint32_t maxOpenFiles; - uint32_t maxPathLenght; + uint32_t maxPathLength; uint32_t totalBytes, usedBytes, freeBytes; uint32_t usedPercent, freePercent; } rdv40_spiffs_fsinfo; diff --git a/client/cmdflashmemspiffs.c b/client/cmdflashmemspiffs.c index 066bb6f3f..bc7a408bd 100644 --- a/client/cmdflashmemspiffs.c +++ b/client/cmdflashmemspiffs.c @@ -442,7 +442,7 @@ static command_t CommandTable[] = { {"mount", CmdFlashMemSpiFFSMount, IfPm3Flash, "Mount the SPIFFS Filesystem if not already mounted (spiffs)"}, {"remove", CmdFlashMemSpiFFSRemove, IfPm3Flash, "Remove a file from SPIFFS FileSystem in FlashMEM (spiffs)"}, {"rename", CmdFlashMemSpiFFSRename, IfPm3Flash, "Rename/move a file in SPIFFS FileSystem in FlashMEM (spiffs)"}, - {"test", CmdFlashMemSpiFFSTest, IfPm3Flash, "Test SPIFFS Functionning (require wiping pages 0 and 1)"}, + {"test", CmdFlashMemSpiFFSTest, IfPm3Flash, "Test SPIFFS Operations (require wiping pages 0 and 1)"}, {"tree", CmdFlashMemSpiFFSTree, IfPm3Flash, "Print the Flash Memory FileSystem Tree (spiffs)"}, {"unmount", CmdFlashMemSpiFFSUnmount, IfPm3Flash, "Un-mount the SPIFFS Filesystem if not already mounted (spiffs)"}, {NULL, NULL, NULL, NULL} diff --git a/client/scripts/legic.lua b/client/scripts/legic.lua index 9637ef6c8..7e0f8d3be 100644 --- a/client/scripts/legic.lua +++ b/client/scripts/legic.lua @@ -2654,7 +2654,7 @@ function modifyMode() local stamp=getSegmentStamp(inTAG.SEG[x]) print("Stamp : "..stamp) stamp=str2bytes(stamp) - print("lenght: "..#stamp) + print("length: "..#stamp) end, --- -- calculate crc16