From 604eaa80afc39544643644085b0170856170b812 Mon Sep 17 00:00:00 2001 From: Oliver Kleinecke Date: Thu, 6 Feb 2025 18:25:20 +0100 Subject: [PATCH] Update mcp4461.h --- esphome/components/mcp4461/mcp4461.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/esphome/components/mcp4461/mcp4461.h b/esphome/components/mcp4461/mcp4461.h index b6202f4e34..cd40a9187d 100644 --- a/esphome/components/mcp4461/mcp4461.h +++ b/esphome/components/mcp4461/mcp4461.h @@ -75,15 +75,15 @@ class Mcp4461Component : public Component, public i2c::I2CDevice { void update_wiper_level(Mcp4461WiperIdx wiper); void enable_wiper(Mcp4461WiperIdx wiper); void disable_wiper(Mcp4461WiperIdx wiper); - void increase_wiper(Mcp4461WiperIdx wiper); - void decrease_wiper(Mcp4461WiperIdx wiper); + bool increase_wiper(Mcp4461WiperIdx wiper); + bool decrease_wiper(Mcp4461WiperIdx wiper); void enable_terminal(Mcp4461WiperIdx wiper, char terminal); void disable_terminal(Mcp4461WiperIdx, char terminal); void update_terminal_register(Mcp4461TerminalIdx terminal_connector); uint8_t get_terminal_register(Mcp4461TerminalIdx terminal_connector); bool set_terminal_register(Mcp4461TerminalIdx terminal_connector, uint8_t data); uint16_t get_eeprom_value(Mcp4461EepromLocation location); - void set_eeprom_value(Mcp4461EepromLocation location, uint16_t value); + bool set_eeprom_value(Mcp4461EepromLocation location, uint16_t value); protected: friend class Mcp4461Wiper;