aboutsummaryrefslogtreecommitdiff
path: root/src/SPI.cpp
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2017-09-21 03:59:12 +0200
committerStapleButter <thetotalworm@gmail.com>2017-09-21 03:59:12 +0200
commit495d0ba12d140fc205fbfbe491b6ddd8d6dbe891 (patch)
tree27692236dd7fd042a75fb828d89365686616cdd0 /src/SPI.cpp
parent0aa3434ec7c7416fb267ebff76535949e91bf050 (diff)
add support for SPI shutdown, btw
Diffstat (limited to 'src/SPI.cpp')
-rw-r--r--src/SPI.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/SPI.cpp b/src/SPI.cpp
index 21f9ccb..534f6ca 100644
--- a/src/SPI.cpp
+++ b/src/SPI.cpp
@@ -365,7 +365,7 @@ u8 Read()
}
void Write(u8 val, u32 hold)
-{printf("SPI powerman %02X %d\n", val, hold?1:0);
+{
if (!hold)
{
Hold = 0;
@@ -395,11 +395,11 @@ void Write(u8 val, u32 hold)
switch (regid)
{
case 0:
- if (val & 0x40) printf("DS shutdown\n");
- printf("power %02X\n", val);
+ if (val & 0x40) NDS::Stop(); // shutdown
+ //printf("power %02X\n", val);
break;
case 4:
- printf("brightness %02X\n", val);
+ //printf("brightness %02X\n", val);
break;
}
}