Skip to content

Commit

Permalink
Update deep_sleep_component.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Xmister authored Aug 23, 2023
1 parent 89c3c43 commit d5b3894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esphome/components/deep_sleep/deep_sleep_component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ void DeepSleepComponent::begin_sleep(bool manual) {
if (wakeup_pins_.size() > 0) {
bool level;
for (WakeUpPinItem item : this->wakeup_pins_) {
level = item.wakeup_pin->is_inverted();
level = !item.wakeup_pin->is_inverted();
if (item.wakeup_pin_mode == WAKEUP_PIN_MODE_INVERT_WAKEUP && item.wakeup_pin->digital_read()) {
level = !level;
}
Expand Down

0 comments on commit d5b3894

Please sign in to comment.