Only call LogI2cError() if the passed status is an actual I2C error, otherwise it slows the mouse pointer down.

This commit is contained in:
László Monda
2018-01-06 02:04:47 +01:00
parent f6b66283a7
commit 5a986d367e
3 changed files with 7 additions and 6 deletions

View File

@@ -5,10 +5,6 @@ i2c_slave_error_counter_t I2cSlaveErrorCounters[MAX_SLAVE_COUNT];
void LogI2cError(uint8_t slaveId, status_t status)
{
if (!(kStatus_I2C_Busy <= status && status <= kStatus_I2C_Timeout)) {
return;
}
i2c_slave_error_counter_t *i2cSlaveErrorCounter = I2cSlaveErrorCounters + slaveId;
uint8_t errorIdx;