aboutsummaryrefslogtreecommitdiff
path: root/src/DSi_I2C.cpp
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2019-08-06 13:31:27 +0200
committerArisotura <thetotalworm@gmail.com>2019-08-06 13:31:27 +0200
commit9c1ea0e539d797720ec5b0eaf999577ee5747eef (patch)
tree0c1f0e08a5977ee6e69771ecdeacd2024f986f9f /src/DSi_I2C.cpp
parent28a9c7d9d1c44066e91664101362eab69ab12f4d (diff)
guess after all we shouldn't send ACKs for nonexistant I2C devices
Diffstat (limited to 'src/DSi_I2C.cpp')
-rw-r--r--src/DSi_I2C.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DSi_I2C.cpp b/src/DSi_I2C.cpp
index ffb724f..5ced51e 100644
--- a/src/DSi_I2C.cpp
+++ b/src/DSi_I2C.cpp
@@ -203,7 +203,7 @@ void WriteCnt(u8 val)
case 0x7A: DSi_Camera1->Start(); break;
default:
printf("I2C: %s start on unknown device %02X\n", (Data&0x01)?"read":"write", Device);
- //ack = false;
+ ack = false;
break;
}
}
@@ -218,7 +218,7 @@ void WriteCnt(u8 val)
case 0x7A: DSi_Camera1->Write(Data, islast); break;
default:
printf("I2C: write on unknown device %02X, cnt=%02X, data=%02X, last=%d\n", Device, val, Data, islast);
- //ack = false;
+ ack = false;
break;
}
}