Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: YKNCT_I2C.cpp
- Revision:
- 20:ee9aaf0877c5
- Parent:
- 11:c7c764e21224
--- a/YKNCT_I2C.cpp Tue Apr 23 11:04:54 2019 +0000 +++ b/YKNCT_I2C.cpp Sun May 05 14:48:56 2019 +0000 @@ -55,7 +55,7 @@ { char data[4]= {0}; - i2c.read((ENC_I2C_Data+num) -> DevAddress<<1, data, 4); + i2c.read(((ENC_I2C_Data+num) -> DevAddress+60)<<1, data, 4); (ENC_I2C_Data+num)->enc_data=data[3]<<24|data[2]<<16|data[1]<<8|data[0]; }