guess after all we shouldn't send ACKs for nonexistant I2C devices

This commit is contained in:
Arisotura 2019-08-06 13:31:27 +02:00
parent 28a9c7d9d1
commit 9c1ea0e539
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}