Fixed return values and error handling in the TwoWire::endTransmission() API
Now follows Arduino implementation.