Always update LastEepromTransferStatus in the beginning of i2cCallback()

This commit is contained in:
László Monda
2017-07-23 14:04:48 +02:00
parent d399d5f1bf
commit 87cee8b8eb

View File

@@ -47,8 +47,8 @@ static status_t writePage()
static void i2cCallback(I2C_Type *base, i2c_master_handle_t *handle, status_t status, void *userData)
{
LastEepromTransferStatus = status;
if (status != kStatus_Success) {
LastEepromTransferStatus = status;
return;
}