From 4ec2d459e66b15e058ada2f8e23c39422eae7d26 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 9 Oct 2016 16:45:00 -0500 Subject: [PATCH] Fix mcp4728_setVref_all as followup to #4967 --- Marlin/dac_mcp4728.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/dac_mcp4728.cpp b/Marlin/dac_mcp4728.cpp index 5ba78e051..4dd7317d8 100644 --- a/Marlin/dac_mcp4728.cpp +++ b/Marlin/dac_mcp4728.cpp @@ -80,7 +80,7 @@ uint8_t mcp4728_eepromWrite() { */ uint8_t mcp4728_setVref_all(uint8_t value) { Wire.beginTransmission(DAC_DEV_ADDRESS); - Wire.write(GAINWRITE | (value ? 0x0F : 0x00)); + Wire.write(VREFWRITE | (value ? 0x0F : 0x00)); return Wire.endTransmission(); } /**