Rename hal/rtc test callback to avoid overloading

pull/11236/head
Hugues Kamba 2019-08-19 15:07:16 +01:00
parent 7ec84a89d1
commit 3373d78ec8
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ static const uint32_t TOLERANCE_ACCURACY_US = (DELAY_10S *US_PER_SEC / ACCURACY_
#if DEVICE_LPTICKER
volatile bool expired;
void callback(void)
void set_flag_true(void)
{
expired = true;
}
@ -72,7 +72,7 @@ void rtc_sleep_test_support(bool deepsleep_mode)
rtc_write(start);
timeout.attach(callback, DELAY_4S);
timeout.attach(set_flag_true, DELAY_4S);
TEST_ASSERT(sleep_manager_can_deep_sleep_test_check() == deepsleep_mode);