mirror of
https://github.com/esphome/esphome.git
synced 2025-03-26 04:28:17 +00:00
Update mcp4461.cpp
This commit is contained in:
parent
0609d6ed3d
commit
613bfa7ab1
@ -499,10 +499,6 @@ void Mcp4461Component::enable_terminal_(Mcp4461WiperIdx wiper, char terminal) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
uint8_t wiper_idx = static_cast<uint8_t>(wiper);
|
uint8_t wiper_idx = static_cast<uint8_t>(wiper);
|
||||||
if (wiper_idx > 3) {
|
|
||||||
ESP_LOGV(TAG, "Cannot enable/disable terminals of nonvolatile wiper %" PRIu8 "", terminal, wiper_idx);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
ESP_LOGV(TAG, "Enabling terminal %c of wiper %" PRIu8 "", terminal, wiper_idx);
|
ESP_LOGV(TAG, "Enabling terminal %c of wiper %" PRIu8 "", terminal, wiper_idx);
|
||||||
switch (terminal) {
|
switch (terminal) {
|
||||||
case 'h':
|
case 'h':
|
||||||
@ -530,10 +526,6 @@ void Mcp4461Component::disable_terminal_(Mcp4461WiperIdx wiper, char terminal) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
uint8_t wiper_idx = static_cast<uint8_t>(wiper);
|
uint8_t wiper_idx = static_cast<uint8_t>(wiper);
|
||||||
if (wiper_idx > 3) {
|
|
||||||
ESP_LOGV(TAG, "Cannot enable/disable terminals of nonvolatile wiper %" PRIu8 "", terminal, wiper_idx);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
ESP_LOGV(TAG, "Disabling terminal %c of wiper %" PRIu8 "", terminal, wiper_idx);
|
ESP_LOGV(TAG, "Disabling terminal %c of wiper %" PRIu8 "", terminal, wiper_idx);
|
||||||
switch (terminal) {
|
switch (terminal) {
|
||||||
case 'h':
|
case 'h':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user