Browse Source

Fix I2C address of MCP4728 on LPC176x (#16578)

dagorel 4 years ago
parent
commit
bda4957f9b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/feature/dac/dac_mcp4728.cpp

+ 1
- 1
Marlin/src/feature/dac/dac_mcp4728.cpp View File

@@ -43,7 +43,7 @@ xyze_uint_t mcp4728_values;
43 43
  */
44 44
 void mcp4728_init() {
45 45
   Wire.begin();
46
-  Wire.requestFrom(int(DAC_DEV_ADDRESS), 24);
46
+  Wire.requestFrom(I2C_ADDRESS(DAC_DEV_ADDRESS), 24);
47 47
   while (Wire.available()) {
48 48
     char deviceID = Wire.read(),
49 49
          hiByte = Wire.read(),

Loading…
Cancel
Save