mirror of
https://github.com/arendst/Tasmota.git
synced 2026-03-13 08:30:47 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user