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:
- 21:e861258373e2
- Parent:
- 18:c631bf8fc741
- Child:
- 22:a58cf4376400
--- a/YKNCT_I2C.cpp Wed May 08 16:44:11 2019 +0000 +++ b/YKNCT_I2C.cpp Thu May 09 10:34:44 2019 +0000 @@ -81,7 +81,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]; }