diff options
| author | JF <jf@codingfield.com> | 2021-02-07 17:11:46 (GMT) |
|---|---|---|
| committer | Gitea <gitea@fake.local> | 2021-02-07 17:11:46 (GMT) |
| commit | f534fb0356762122842ea49b481619cb963a5d27 (patch) | |
| tree | 2be27d663709cb380afc88f96ebb18e732de5aa9 /src/libs | |
| parent | 09bd6fdbc72c606d9326c39b603382e2622d68a7 (diff) | |
| parent | 6420885abb96735e085f3c60b123b0c671a7afb8 (diff) | |
Merge branch 'develop' of JF/PineTime into master
Diffstat (limited to 'src/libs')
| -rw-r--r-- | src/libs/mynewt-nimble/porting/npl/freertos/src/npl_os_freertos.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/mynewt-nimble/porting/npl/freertos/src/npl_os_freertos.c b/src/libs/mynewt-nimble/porting/npl/freertos/src/npl_os_freertos.c index 87936bd..875521a 100644 --- a/src/libs/mynewt-nimble/porting/npl/freertos/src/npl_os_freertos.c +++ b/src/libs/mynewt-nimble/porting/npl/freertos/src/npl_os_freertos.c @@ -268,8 +268,10 @@ void npl_freertos_callout_init(struct ble_npl_callout *co, struct ble_npl_eventq *evq, ble_npl_event_fn *ev_cb, void *ev_arg) { + if(co->handle == NULL) { memset(co, 0, sizeof(*co)); co->handle = xTimerCreate("co", 1, pdFALSE, co, os_callout_timer_cb); + } co->evq = evq; ble_npl_event_init(&co->ev, ev_cb, ev_arg); } |
