Remove commented out code. The scheduler checks previousStatus and acts accordingly, so things should work out fine.

This commit is contained in:
László Monda
2017-09-28 23:03:40 +02:00
parent 55e0872967
commit 96eeb97a04

View File

@@ -37,7 +37,6 @@ static void masterCallback(I2C_Type *base, i2c_master_handle_t *handle, status_t
status_t currentStatus = currentSlave->update(currentSlave->perDriverId);
isTransferScheduled = currentStatus != kStatus_Uhk_IdleSlave && currentStatus != kStatus_Uhk_NoTransfer;
//isTransferScheduled = currentStatus == kStatus_Success // Why it is not working?
if (isTransferScheduled) {
currentSlave->isConnected = true;
}