Skip to content

Commit e119357

Browse files
committed
[HAL] Ensure us_ticker and lp_ticker queue are correctly initialized.
1 parent 1057720 commit e119357

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

hal/mbed_lp_ticker_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
#if DEVICE_LOWPOWERTIMER
1919

20-
static ticker_event_queue_t events;
20+
static ticker_event_queue_t events = { 0 };
2121

2222
static const ticker_interface_t lp_interface = {
2323
.init = lp_ticker_init,

hal/mbed_us_ticker_api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
#include "hal/us_ticker_api.h"
1717

18-
static ticker_event_queue_t events;
18+
static ticker_event_queue_t events = { 0 };
1919

2020
static const ticker_interface_t us_interface = {
2121
.init = us_ticker_init,
@@ -27,7 +27,7 @@ static const ticker_interface_t us_interface = {
2727

2828
static const ticker_data_t us_data = {
2929
.interface = &us_interface,
30-
.queue = &events,
30+
.queue = &events
3131
};
3232

3333
const ticker_data_t* get_us_ticker_data(void)

0 commit comments

Comments
 (0)