TinyWireM
TinyWireM copied to clipboard
USI_TWI::endTransmission() not returning status
In TinyWireM.cpp the function endTransmission() is not returning proper status. This breaks code that checks for return status information using the endTransmission() function. This:
uint8_t USI_TWI::endTransmission() {
endTransmission(1);
}
Should be changed to:
uint8_t USI_TWI::endTransmission() {
return(endTransmission(1));
}