diff options
author | Arisotura <thetotalworm@gmail.com> | 2019-06-20 03:19:51 +0200 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2019-06-20 03:19:51 +0200 |
commit | d943a51b9658e1898f49b6773f85778ae7348400 (patch) | |
tree | 8fcaddb515f46a271bd189a0f9822c0d518614e1 /src/DSi_I2C.cpp | |
parent | 000aa1f327c0fcfa627953fcb732884aec6867b1 (diff) |
ayyy
getting there!
Diffstat (limited to 'src/DSi_I2C.cpp')
-rw-r--r-- | src/DSi_I2C.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/DSi_I2C.cpp b/src/DSi_I2C.cpp index 8b01b0e..845dd9d 100644 --- a/src/DSi_I2C.cpp +++ b/src/DSi_I2C.cpp @@ -152,7 +152,7 @@ void Reset() void WriteCnt(u8 val) { - printf("I2C: write CNT %02X\n", val); + //printf("I2C: write CNT %02X\n", val); // TODO: check ACK flag // TODO: transfer delay @@ -174,7 +174,7 @@ void WriteCnt(u8 val) default: Data = 0; break; } - printf("I2C read, device=%02X, cnt=%02X, data=%02X, last=%d\n", Device, val, Data, islast); + //printf("I2C read, device=%02X, cnt=%02X, data=%02X, last=%d\n", Device, val, Data, islast); } else { @@ -184,7 +184,7 @@ void WriteCnt(u8 val) if (val & (1<<1)) { Device = Data & 0xFE; - printf("I2C: %s start, device=%02X\n", (Data&0x01)?"read":"write", Device); + //printf("I2C: %s start, device=%02X\n", (Data&0x01)?"read":"write", Device); switch (Device) { @@ -193,7 +193,7 @@ void WriteCnt(u8 val) } else { - printf("I2C write, device=%02X, cnt=%02X, data=%02X, last=%d\n", Device, val, Data, islast); + //printf("I2C write, device=%02X, cnt=%02X, data=%02X, last=%d\n", Device, val, Data, islast); switch (Device) { @@ -212,7 +212,6 @@ void WriteCnt(u8 val) u8 ReadData() { - printf("I2C: read the data: %02X\n", Data); return Data; } |