i2c communication between adafruit accelerometer breakout boards to BLE nano
Dependencies: BLE_API i2c-serial-conflict nRF51822
Fork of corny2 by
Diff: wire.cpp
- Revision:
- 8:6c538756395a
- Parent:
- 2:2082f0f50590
diff -r f16ce95a1668 -r 6c538756395a wire.cpp --- a/wire.cpp Tue Apr 11 22:13:51 2017 +0000 +++ b/wire.cpp Thu Apr 13 23:22:20 2017 +0000 @@ -149,7 +149,7 @@ uint8_t TwoWire::twi_master_write(uint8_t *data, uint8_t data_length, uint8_t issue_stop_condition) { uint32_t timeout = MAX_TIMEOUT_LOOPS; - + if(data_length == 0) { return 1;