Patch i2c, info menu

This commit is contained in:
Scott Lahteine
2020-04-27 09:42:51 -05:00
parent 9b90dfaa48
commit 035d6cd16d
4 changed files with 10 additions and 10 deletions

View File

@@ -292,7 +292,7 @@
#define FMOD(x, y) fmodf(x, y)
#define HYPOT(x,y) SQRT(HYPOT2(x,y))
#define I2C_ADDRESS(A) int(TERN(TARGET_LPC1768, (A) << 1, A))
#define I2C_ADDRESS(A) (typeof(A))(TERN(TARGET_LPC1768, (A) << 1, A))
// Use NUM_ARGS(__VA_ARGS__) to get the number of variadic arguments
#define _NUM_ARGS(_,Z,Y,X,W,V,U,T,S,R,Q,P,O,N,M,L,K,J,I,H,G,F,E,D,C,B,A,OUT,...) OUT