mirror of
https://github.com/esphome/esphome.git
synced 2025-04-13 06:10:30 +01:00
Update mcp4461.cpp
This commit is contained in:
parent
4190e29018
commit
b4e0aa00c8
@ -167,7 +167,7 @@ void Mcp4461Component::loop() {
|
||||
uint8_t Mcp4461Component::get_status_register() {
|
||||
if (this->is_failed()) {
|
||||
ESP_LOGE(TAG, "%s", LOG_STR_ARG(mcp4461_get_message_string_(this->error_code_)));
|
||||
return;
|
||||
return 0;
|
||||
}
|
||||
uint8_t reg = 0;
|
||||
reg |= static_cast<uint8_t>(Mcp4461Addresses::MCP4461_STATUS);
|
||||
|
Loading…
x
Reference in New Issue
Block a user