mirror of
https://github.com/esphome/esphome.git
synced 2025-03-13 22:28:14 +00:00
Update esphome/components/mcp4461/output/mcp4461_output.cpp
Co-authored-by: Djordje Mandic <6750655+DjordjeMandic@users.noreply.github.com>
This commit is contained in:
parent
ecde76fca6
commit
c697e032c7
@ -13,6 +13,7 @@ static const char *const TAG = "mcp4461.output";
|
||||
// this function converts them to the 0 - 256 range used by the MCP4461
|
||||
void Mcp4461Wiper::write_state(float state) {
|
||||
if (!std::isfinite(state)) {
|
||||
ESP_LOGW.....
|
||||
return;
|
||||
}
|
||||
state = clamp(state, 0.0f, 1.0f);
|
||||
|
Loading…
x
Reference in New Issue
Block a user