Browse Source

Fix I2C_ADDRESS ambiguity

Scott Lahteine 5 years ago
parent
commit
011ecc341a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/core/macros.h

+ 1
- 1
Marlin/src/core/macros.h View File

@@ -292,7 +292,7 @@
292 292
 #define FMOD(x, y)  fmodf(x, y)
293 293
 #define HYPOT(x,y)  SQRT(HYPOT2(x,y))
294 294
 
295
-#define I2C_ADDRESS(A) (TERN(TARGET_LPC1768, (A) << 1, A))
295
+#define I2C_ADDRESS(A) int(TERN(TARGET_LPC1768, (A) << 1, A))
296 296
 
297 297
 // Use NUM_ARGS(__VA_ARGS__) to get the number of variadic arguments
298 298
 #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

Loading…
Cancel
Save