esp32: remove incorrect !readLast check - #5585
Conversation
!readLast check
3bfd7bd to
f276bec
Compare
!readLast check!readLast check
|
Thanks for the fix @pottekkat The same bug is still in Also |
|
@deadprogram I added a call to We can keep it for consistency or we don't need to add it. I think the latter is better and that would also be why it wasn't there to begin with. wdyt? |
Signed-off-by: Navendu Pottekkat <navendu@apache.org>
Signed-off-by: Navendu Pottekkat <navendu@apache.org>
Signed-off-by: Navendu Pottekkat <navendu@apache.org>
ef9fc68 to
dc9e27d
Compare
Fixes #5584
As described in the issue, the
&& !readLastcheck discarded the address NACK on reads of 32 bytes or fewer. Onlyi2cCMD_WRITEsetsack_check_en, so the address WRITE is the only command in a read that can setACK_ERR, so this check is unnecessary.readLastis also removed as it is not used anywhere else other than this check.Tested on an ESP32-D0WD-V3:
errI2CAckExpectedYou can use the same script in the issue to run the test with any I2C device(s).