Use 8-bit i2c address on LPC platform
Fix #9799 — hopefully not a unicorn
This commit is contained in:
@ -229,3 +229,9 @@
|
||||
#define LROUND(x) lroundf(x)
|
||||
#define FMOD(x, y) fmodf(x, y)
|
||||
#define HYPOT(x,y) SQRT(HYPOT2(x,y))
|
||||
|
||||
#ifdef TARGET_LPC1768
|
||||
#define I2C_ADDRESS(A) ((A) << 1)
|
||||
#else
|
||||
#define I2C_ADDRESS(A) A
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user