Skip to content

Commit c887290

Browse files
committed
Adjust ticker tests
1 parent 65bc41a commit c887290

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

hal/tests/TESTS/mbed_hal/ticker/main.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -127,16 +127,7 @@ static ticker_event_queue_t queue_stub = {
127127

128128
static void reset_queue_stub()
129129
{
130-
queue_stub.event_handler = NULL;
131-
queue_stub.head = NULL,
132-
queue_stub.tick_last_read = 0;
133-
queue_stub.tick_remainder = 0;
134-
queue_stub.frequency = 0;
135-
queue_stub.bitmask = 0;
136-
queue_stub.max_delta = 0;
137-
queue_stub.max_delta_us = 0;
138-
queue_stub.present_time = 0;
139-
queue_stub.initialized = false;
130+
queue_stub = ticker_event_queue_t{};
140131
}
141132

142133
// stub of the ticker

0 commit comments

Comments
 (0)