Browse Source

Fix LPC + EXPERIMENTAL_I2CBUS build error (#18040)

Jason Smith 4 years ago
parent
commit
7696dea1c6
No account linked to committer's email address
2 changed files with 3 additions and 2 deletions
  1. 1
    1
      Marlin/src/HAL/LPC1768/HAL.h
  2. 2
    1
      buildroot/share/tests/LPC1769-tests

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

49
 #include <CDCSerial.h>
49
 #include <CDCSerial.h>
50
 
50
 
51
 // i2c uses 8-bit shifted address
51
 // i2c uses 8-bit shifted address
52
-#define I2C_ADDRESS(A) ((A) << 1)
52
+#define I2C_ADDRESS(A) uint8_t((A) << 1)
53
 
53
 
54
 //
54
 //
55
 // Default graphical display delays
55
 // Default graphical display delays

+ 2
- 1
buildroot/share/tests/LPC1769-tests View File

49
 opt_set Z_DRIVER_TYPE TMC2130
49
 opt_set Z_DRIVER_TYPE TMC2130
50
 opt_enable AUTO_BED_LEVELING_BILINEAR EEPROM_SETTINGS EEPROM_CHITCHAT \
50
 opt_enable AUTO_BED_LEVELING_BILINEAR EEPROM_SETTINGS EEPROM_CHITCHAT \
51
            TMC_USE_SW_SPI MONITOR_DRIVER_STATUS STEALTHCHOP_XY STEALTHCHOP_Z HYBRID_THRESHOLD \
51
            TMC_USE_SW_SPI MONITOR_DRIVER_STATUS STEALTHCHOP_XY STEALTHCHOP_Z HYBRID_THRESHOLD \
52
-           SENSORLESS_PROBING Z_SAFE_HOMING X_STALL_SENSITIVITY Y_STALL_SENSITIVITY Z_STALL_SENSITIVITY TMC_DEBUG
52
+           SENSORLESS_PROBING Z_SAFE_HOMING X_STALL_SENSITIVITY Y_STALL_SENSITIVITY Z_STALL_SENSITIVITY TMC_DEBUG \
53
+           EXPERIMENTAL_I2CBUS
53
 opt_disable PSU_CONTROL
54
 opt_disable PSU_CONTROL
54
 exec_test $1 $2 "Cohesion3D Remix DELTA + ABL Bilinear + EEPROM + SENSORLESS_PROBING"
55
 exec_test $1 $2 "Cohesion3D Remix DELTA + ABL Bilinear + EEPROM + SENSORLESS_PROBING"
55
 
56
 

Loading…
Cancel
Save