Wire.endTransmission() hangs sketch

I got the same Wire.endTransmission() freeze problem too.
And I solved this problem by replacing the "Wire.h" with "WSWire.h" from:

Then everything works fine.
Hope this helps.