From 716555f260ab34dbd2fe98bf37023396e7eb8d8a Mon Sep 17 00:00:00 2001 From: dagorel Date: Wed, 15 Jan 2020 13:02:31 +0100 Subject: [PATCH] I2C address provided to Wire.requestFrom() must be a 8 bits one according the the lpc176x fmk implementation. --- Marlin/src/feature/dac/dac_mcp4728.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/feature/dac/dac_mcp4728.cpp b/Marlin/src/feature/dac/dac_mcp4728.cpp index 19f8d5f64302..9efb9943a713 100644 --- a/Marlin/src/feature/dac/dac_mcp4728.cpp +++ b/Marlin/src/feature/dac/dac_mcp4728.cpp @@ -43,7 +43,7 @@ xyze_uint_t mcp4728_values; */ void mcp4728_init() { Wire.begin(); - Wire.requestFrom(int(DAC_DEV_ADDRESS), 24); + Wire.requestFrom(I2C_ADDRESS(DAC_DEV_ADDRESS), 24); while (Wire.available()) { char deviceID = Wire.read(), hiByte = Wire.read(),