aboutsummaryrefslogtreecommitdiff
path: root/src/DSi_I2C.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/DSi_I2C.cpp')
-rw-r--r--src/DSi_I2C.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/DSi_I2C.cpp b/src/DSi_I2C.cpp
index 16ec1a8..ad01a42 100644
--- a/src/DSi_I2C.cpp
+++ b/src/DSi_I2C.cpp
@@ -79,14 +79,15 @@ void Start()
u8 Read(bool last)
{
+ //printf("BPTWL: read %02X -> %02X @ %08X\n", CurPos, Registers[CurPos], NDS::GetPC(1));
+ u8 ret = Registers[CurPos++];
+
if (last)
{
CurPos = -1;
- return 0;
}
- //printf("BPTWL: read %02X -> %02X\n", CurPos, Registers[CurPos]);
- return Registers[CurPos++];
+ return ret;
}
void Write(u8 val, bool last)