mirror of
https://github.com/esphome/esphome.git
synced 2025-03-13 22:28:14 +00:00
Update mcp4461.cpp
This commit is contained in:
parent
e1c1599d68
commit
cdf44169e5
@ -46,9 +46,9 @@ void Mcp4461Component::begin_() {
|
||||
// Converts a status to a human readable string
|
||||
static const LogString *mcp4461_get_message_string(int status) {
|
||||
switch (status) {
|
||||
case Mcp4461Component->MCP4461_STATUS_I2C_ERROR:
|
||||
case Mcp4461Component::MCP4461_STATUS_I2C_ERROR:
|
||||
return LOG_STR("I2C error - communication with MCP4461 failed!");
|
||||
case Mcp4461Component->MCP4461_STATUS_REGISTER_ERROR:
|
||||
case Mcp4461Component::MCP4461_STATUS_REGISTER_ERROR:
|
||||
return LOG_STR("Status register could not be read");
|
||||
case Mcp4461Component::MCP4461_STATUS_REGISTER_INVALID:
|
||||
return LOG_STR("Invalid status register value - bits 1,7 or 8 are 0");
|
||||
|
Loading…
x
Reference in New Issue
Block a user