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
+1
View File
@@ -11,6 +11,7 @@
#define SLAVE_COUNT (sizeof(Slaves) / sizeof(uhk_slave_t))
#define MAX_SLAVE_COUNT 6
#define IS_VALID_SLAVE_ID(slaveId) (0 <= slaveId && slaveId <= MAX_SLAVE_COUNT)
#define IS_STATUS_I2C_ERROR(status) (kStatus_I2C_Busy <= status && status <= kStatus_I2C_Timeout)
// Typedefs: