Skip to content

Commit cffab50

Browse files
committed
esp32: Deactivate wakeup trigger after first wakeup
The files updated according to code review discussions. In the sleep_modes.c removed immidiate disable of ULP mode and leave just trigger deactivation. The esp_sleep.h is updated to have the same defines for source as esp_sleep_wakeup_cause_t. Updated documentation in sleep_modes.rst file to include cross references and address esp_sleep_wakeup_cause_t type. The get_time_ms() is updated to explicitly use fabs(dt) instead of abs(dt) in test_sleep.c. Some other minor changes in test_sleep.c unit test. (TW#18952) Closes #1677
1 parent d91e270 commit cffab50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/esp32/test/test_sleep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ static float get_time_ms(void)
123123

124124
float dt = (tv_stop.tv_sec - tv_start.tv_sec) * 1e3f +
125125
(tv_stop.tv_usec - tv_start.tv_usec) * 1e-3f;
126-
return abs(dt);
126+
return fabs(dt);
127127
}
128128

129129
static uint32_t get_cause()

0 commit comments

Comments
 (0)