t

Fork of mbed-dev by mbed official

Revision:
167:e84263d55307
Parent:
149:156823d33999
Child:
174:b96e65c34a4d
diff -r c97ed07ec1a8 -r e84263d55307 hal/mbed_us_ticker_api.c
--- a/hal/mbed_us_ticker_api.c	Thu Jun 08 15:02:37 2017 +0100
+++ b/hal/mbed_us_ticker_api.c	Wed Jun 21 17:46:44 2017 +0100
@@ -15,7 +15,7 @@
  */
 #include "hal/us_ticker_api.h"
 
-static ticker_event_queue_t events;
+static ticker_event_queue_t events = { 0 };
 
 static const ticker_interface_t us_interface = {
     .init = us_ticker_init,
@@ -27,7 +27,7 @@
 
 static const ticker_data_t us_data = {
     .interface = &us_interface,
-    .queue = &events,
+    .queue = &events
 };
 
 const ticker_data_t* get_us_ticker_data(void)