You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Location: msdk/Libraries/PeriphDrivers/Source/I2C/i2c_reva.c
Function MXC_I2C_RevA_MasterAsyncHandler(int i2cNum)
Lines 1442-1447 /* Call the callback */
The issue does no harm just contains an if/else statement a part of which is never called.
The statement can be replaced by single line: MXC_I2C_RevA_AsyncCallback(i2c, E_NO_ERROR);
because 1) the intfl0 flags get cleared in line 1432, so the 'if' expression is always 0,
2) the case of errors present ( E_COMM_ERR ) is taken care of at block 1355-1368 /* Check for errors */.
The text was updated successfully, but these errors were encountered:
Location: msdk/Libraries/PeriphDrivers/Source/I2C/i2c_reva.c
Function
MXC_I2C_RevA_MasterAsyncHandler(int i2cNum)
Lines 1442-1447
/* Call the callback */
The issue does no harm just contains an if/else statement a part of which is never called.
The statement can be replaced by single line:
MXC_I2C_RevA_AsyncCallback(i2c, E_NO_ERROR);
because 1) the intfl0 flags get cleared in line 1432, so the 'if' expression is always 0,
2) the case of errors present (
E_COMM_ERR
) is taken care of at block 1355-1368/* Check for errors */
.The text was updated successfully, but these errors were encountered: