aboutsummaryrefslogtreecommitdiffhomepage
path: root/Cart_Reader/N64.ino
diff options
context:
space:
mode:
authorVincent Pelletier <[email protected]>2022-10-22 06:07:10 +0000
committerVincent Pelletier <[email protected]>2022-10-28 05:29:20 +0000
commitd7bbc59607d4b831098290bfef8eae9a983065c8 (patch)
tree7bd51e80033d6203aca54be941e3332b83947042 /Cart_Reader/N64.ino
parentb3eb3dd92890d7ca33453112c868d07e26424df4 (diff)
downloadcartreader-d7bbc59607d4b831098290bfef8eae9a983065c8.tar.gz
cartreader-d7bbc59607d4b831098290bfef8eae9a983065c8.zip
N64.ino: Remove unused function
This does not save any space as the linker noticed it wasn't used. Also, point the (commented-out) only caller to the equivalent libc function.
Diffstat (limited to 'Cart_Reader/N64.ino')
-rw-r--r--Cart_Reader/N64.ino11
1 files changed, 1 insertions, 10 deletions
diff --git a/Cart_Reader/N64.ino b/Cart_Reader/N64.ino
index e2d97ec..aa5feb7 100644
--- a/Cart_Reader/N64.ino
+++ b/Cart_Reader/N64.ino
@@ -2033,15 +2033,6 @@ void printCartInfo_N64() {
}
}
-// improved strcmp function that ignores case to prevent checksum comparison issues
-int strcicmp(char const* a, char const* b) {
- for (;; a++, b++) {
- int d = tolower((unsigned char)*a) - tolower((unsigned char)*b);
- if (d != 0 || !*a)
- return d;
- }
-}
-
/* look-up the calculated crc in the file n64.txt on sd card
boolean searchCRC(char crcStr[9]) {
boolean result = 0;
@@ -2063,7 +2054,7 @@ int strcicmp(char const* a, char const* b) {
}
// Check if string is a match
- if (strcicmp(tempStr1, crcStr) == 0) {
+ if (strcasecmp(tempStr1, crcStr) == 0) {
// Skip the , in the file
myFile.seekSet(myFile.curPosition() + 1);