Commit 634abab3 authored by Dean Camera's avatar Dean Camera
Browse files

Fix TWI driver not aborting when faced with no response after attempting to...

Fix TWI driver not aborting when faced with no response after attempting to address a device on the bus.
parent c0c982df
......@@ -66,8 +66,8 @@ bool TWI_StartTransmission(uint8_t SlaveAddress, uint8_t TimeoutMS)
case TW_MR_SLA_ACK:
return true;
default:
TWI_StopTransmission();
break;
TWCR = ((1 << TWINT) | (1 << TWSTO) | (1 << TWEN));
return false;
}
}
}
......@@ -20,6 +20,7 @@
* <b>Fixed:</b>
* - Fixed software PDI/TPI programming mode in the AVRISP project not correctly toggling just the clock pin
* - Fixed TWI_StartTransmission() corrupting the contents of the GPIOR0 register
* - Fix TWI driver not aborting when faced with no response after attempting to address a device on the bus
*
* \section Sec_ChangeLog100219 Version 100219
*
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment