Abort EEPROM I2C callback if its status is anything but success.
This commit is contained in:
@@ -47,6 +47,11 @@ static status_t writePage()
|
||||
|
||||
static void i2cCallback(I2C_Type *base, i2c_master_handle_t *handle, status_t status, void *userData)
|
||||
{
|
||||
if (status != kStatus_Success) {
|
||||
LastEepromTransferStatus = status;
|
||||
return;
|
||||
}
|
||||
|
||||
bool isHardwareConfig = CurrentEepromTransfer == EepromTransfer_ReadHardwareConfiguration;
|
||||
switch (CurrentEepromTransfer) {
|
||||
case EepromTransfer_ReadHardwareConfiguration:
|
||||
|
||||
Reference in New Issue
Block a user