From 9b07f1b91ca44aa2e7338da2c8a8e475994c5fd7 Mon Sep 17 00:00:00 2001 From: Bob-the-Kuhn Date: Fri, 24 Jan 2020 01:22:47 -0600 Subject: [PATCH] add missing declaration and missing arguement --- .../src/HAL/HAL_LPC1768/include/digipot_mcp4451_I2C_routines.h | 1 + Marlin/src/feature/digipot/digipot_mcp4451.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Marlin/src/HAL/HAL_LPC1768/include/digipot_mcp4451_I2C_routines.h b/Marlin/src/HAL/HAL_LPC1768/include/digipot_mcp4451_I2C_routines.h index 6d6fafa8bb78..3e7f8ab6000f 100644 --- a/Marlin/src/HAL/HAL_LPC1768/include/digipot_mcp4451_I2C_routines.h +++ b/Marlin/src/HAL/HAL_LPC1768/include/digipot_mcp4451_I2C_routines.h @@ -36,6 +36,7 @@ uint8_t digipot_mcp4451_start(uint8_t sla); uint8_t digipot_mcp4451_send_byte(uint8_t data); +void configure_i2c(const uint8_t clock_option); #ifdef __cplusplus } diff --git a/Marlin/src/feature/digipot/digipot_mcp4451.cpp b/Marlin/src/feature/digipot/digipot_mcp4451.cpp index 13022abad1d0..e9368d018e79 100644 --- a/Marlin/src/feature/digipot/digipot_mcp4451.cpp +++ b/Marlin/src/feature/digipot/digipot_mcp4451.cpp @@ -77,7 +77,7 @@ void digipot_i2c_set_current(const uint8_t channel, const float current) { void digipot_i2c_init() { #if MB(MKS_SBASE) - configure_i2c(); + configure_i2c(0xFF); #else Wire.begin(); #endif