Skip to content

Commit 1f5b4db

Browse files
committed
Rename hal/rtc test callback to avoid overloading
1 parent d4497b7 commit 1f5b4db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TESTS/mbed_hal/rtc/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static const uint32_t TOLERANCE_ACCURACY_US = (DELAY_10S *US_PER_SEC / ACCURACY_
4242
#if DEVICE_LPTICKER
4343
volatile bool expired;
4444

45-
void callback(void)
45+
void set_flag_true(void)
4646
{
4747
expired = true;
4848
}
@@ -72,7 +72,7 @@ void rtc_sleep_test_support(bool deepsleep_mode)
7272

7373
rtc_write(start);
7474

75-
timeout.attach(callback, DELAY_4S);
75+
timeout.attach(set_flag_true, DELAY_4S);
7676

7777
TEST_ASSERT(sleep_manager_can_deep_sleep_test_check() == deepsleep_mode);
7878

0 commit comments

Comments
 (0)