From b6030295496d14d66636032fedb6a3b6692f48c2 Mon Sep 17 00:00:00 2001 From: "Anthony J. Bentley" Date: Wed, 6 Dec 2017 22:02:55 -0700 Subject: [PATCH 1/2] Fix bitwise operation precedence. --- src/Wifi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Wifi.cpp b/src/Wifi.cpp index 68441661..aaac0e24 100644 --- a/src/Wifi.cpp +++ b/src/Wifi.cpp @@ -234,7 +234,7 @@ void SetIRQ14(int source) // 0=USCOMPARE 1=BEACONCOUNT 2=forced if (BlockBeaconIRQ14 && source == 1) return; - if (!(IOPORT(W_USCompareCnt)) & 0x0001) + if (!(IOPORT(W_USCompareCnt) & 0x0001)) return; SetIRQ(14); From 4519a7ae1ff0fe8280e08aa29537c07c21c2f2cb Mon Sep 17 00:00:00 2001 From: "Anthony J. Bentley" Date: Wed, 6 Dec 2017 22:06:15 -0700 Subject: [PATCH 2/2] Pass correct number of arguments to printf. --- src/NDSCart.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NDSCart.cpp b/src/NDSCart.cpp index 03f536a6..474a13b3 100644 --- a/src/NDSCart.cpp +++ b/src/NDSCart.cpp @@ -178,7 +178,7 @@ void SetMemoryType() } else { - printf("bad save size %X. assuming EEPROM 64K\n"); + printf("bad save size %X. assuming EEPROM 64K\n", Discover_LikelySize); Discover_MemoryType = 2; } }