Fixing wrong data type in ULP.sleep() (#24526)

Calculating microseconds in unsigned long long as expected by esp_sleep_enable_timer_wakeup
This commit is contained in:
grmpl
2026-03-05 08:43:53 +01:00
committed by GitHub
parent 1592938480
commit 61be6503c7

View File

@@ -157,7 +157,7 @@ extern "C" {
if (wake_up_s) {
AddLog(LOG_LEVEL_INFO, PSTR("ULP: will wake up in %u seconds."), wake_up_s);
esp_sleep_enable_timer_wakeup(wake_up_s * 1000000);
esp_sleep_enable_timer_wakeup(wake_up_s * 1000000ULL);
}
esp_sleep_enable_ulp_wakeup();
esp_deep_sleep_start();
@@ -168,4 +168,4 @@ extern "C" {
#endif //CONFIG_IDF_TARGET_ESP32 .. S2 .. S3
#endif // USE_BERRY_ULP
#endif // USE_BERRY
#endif // USE_BERRY