Skip to content

Commit

Permalink
FIXUP - ft - deepsleep
Browse files Browse the repository at this point in the history
  • Loading branch information
ladislas committed Jul 2, 2024
1 parent 3eafe4c commit 2b1edc5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/functional/tests/deep_sleep_mbed_hal/suite_mbed_hal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,18 @@ suite suite_mbed_hal = [] {
// ? Give time to test to finish UART transmission before entering deep sleep mode
utils::sleep::busy_wait(utils::sleep::SERIAL_FLUSH_TIME_MS);

auto can_deep_sleep = sleep_manager_can_deep_sleep();
expect(can_deep_sleep) << "deep sleep not possible";
{
auto can_deep_sleep_test_check = sleep_manager_can_deep_sleep_test_check();
expect(can_deep_sleep_test_check) << "deep sleep not possible";
}

const timestamp_t wakeup_time = lp_ticker_read() + utils::sleep::us_to_ticks(20000, lp_ticker_freq);
lp_ticker_set_interrupt(wakeup_time);

auto can_deep_sleep_test_check = sleep_manager_can_deep_sleep_test_check();
expect(can_deep_sleep_test_check);
{
auto can_deep_sleep_test_check = sleep_manager_can_deep_sleep_test_check();
expect(can_deep_sleep_test_check) << "deep sleep not possible";
}

auto us_ticks_before_sleep = us_ticker_read(); // NOLINT

Expand Down

0 comments on commit 2b1edc5

Please sign in to comment.