Skip to content

Commit

Permalink
Switch to milliseconds interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Xmister committed Jun 23, 2023
1 parent 2c9c9d2 commit df14108
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 @@ -142,7 +142,7 @@ void DeepSleepComponent::begin_sleep(bool manual) {
#if defined(USE_ESP32_VARIANT_ESP32C3) || defined(USE_LIBRETINY)
if (this->sleep_duration_.has_value())
#if defined(USE_LIBRETINY)
lt_deep_sleep_config_timer((*this->sleep_duration_ / 1000000) & 0xFFFFFFFF);
lt_deep_sleep_config_timer((*this->sleep_duration_ / 1000) & 0xFFFFFFFF);
#else
esp_sleep_enable_timer_wakeup(*this->sleep_duration_);
#endif
Expand Down

0 comments on commit df14108

Please sign in to comment.