From 49a96f41daa53ffa5dc4a46bdac4ee68f0b7eaee Mon Sep 17 00:00:00 2001 From: Arisotura Date: Mon, 26 Oct 2020 20:34:54 +0100 Subject: [PATCH] I2C: silence logging for devices A0/E0 (mysterious alternate cameras) --- src/DSi_I2C.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/DSi_I2C.cpp b/src/DSi_I2C.cpp index 6080ffec..fc3a4c30 100644 --- a/src/DSi_I2C.cpp +++ b/src/DSi_I2C.cpp @@ -189,6 +189,8 @@ void WriteCnt(u8 val) case 0x4A: Data = DSi_BPTWL::Read(islast); break; case 0x78: Data = DSi_Camera0->Read(islast); break; case 0x7A: Data = DSi_Camera1->Read(islast); break; + case 0xA0: + case 0xE0: Data = 0xFF; break; default: printf("I2C: read on unknown device %02X, cnt=%02X, data=%02X, last=%d\n", Device, val, 0, islast); Data = 0xFF; @@ -213,6 +215,8 @@ void WriteCnt(u8 val) case 0x4A: DSi_BPTWL::Start(); break; case 0x78: DSi_Camera0->Start(); break; case 0x7A: DSi_Camera1->Start(); break; + case 0xA0: + case 0xE0: ack = false; break; default: printf("I2C: %s start on unknown device %02X\n", (Data&0x01)?"read":"write", Device); ack = false; @@ -228,6 +232,8 @@ void WriteCnt(u8 val) case 0x4A: DSi_BPTWL::Write(Data, islast); break; case 0x78: DSi_Camera0->Write(Data, islast); break; case 0x7A: DSi_Camera1->Write(Data, islast); break; + case 0xA0: + case 0xE0: ack = false; break; default: printf("I2C: write on unknown device %02X, cnt=%02X, data=%02X, last=%d\n", Device, val, Data, islast); ack = false;