TinyWireM icon indicating copy to clipboard operation
TinyWireM copied to clipboard

USI_TWI::endTransmission() not returning status

Open bperrybap opened this issue 7 years ago • 1 comments

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));
}

bperrybap avatar May 04 '17 21:05 bperrybap