aboutsummaryrefslogtreecommitdiff
path: root/src/DSi_I2C.cpp
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2019-10-20 18:35:16 +0200
committerArisotura <thetotalworm@gmail.com>2019-10-20 18:35:16 +0200
commit1c72df43ab8a45c3d7253274d8b1cb6e286a41eb (patch)
tree68eaf49bafcf01c4508b363454e4ee7e83f46ad5 /src/DSi_I2C.cpp
parentde11d6d4105f4188c90c1d6fec5b11221deb4111 (diff)
messing around
Diffstat (limited to 'src/DSi_I2C.cpp')
-rw-r--r--src/DSi_I2C.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/DSi_I2C.cpp b/src/DSi_I2C.cpp
index 5ced51e..0ab7008 100644
--- a/src/DSi_I2C.cpp
+++ b/src/DSi_I2C.cpp
@@ -103,6 +103,13 @@ void Write(u8 val, bool last)
return;
}
+ if (CurPos == 0x11 && val == 0x01)
+ {
+ printf("BPTWL: soft-reset\n");
+ val = 0; // checkme
+ DSi::SoftReset();
+ }
+
if (CurPos == 0x11 || CurPos == 0x12 ||
CurPos == 0x21 ||
CurPos == 0x30 || CurPos == 0x31 ||