Browse Source

Fix I2C_ADDRESS sign warning (#19685)

Jason Smith 3 years ago
parent
commit
04882e2f34
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/HAL/HAL.h

+ 1
- 1
Marlin/src/HAL/HAL.h View File

@@ -34,7 +34,7 @@
34 34
 #define HAL_ADC_RANGE _BV(HAL_ADC_RESOLUTION)
35 35
 
36 36
 #ifndef I2C_ADDRESS
37
-  #define I2C_ADDRESS(A) (A)
37
+  #define I2C_ADDRESS(A) uint8_t(A)
38 38
 #endif
39 39
 
40 40
 // Needed for AVR sprintf_P PROGMEM extension

Loading…
Cancel
Save