Skip to content

Commit f534fb0

Browse files
JF002Gitea
authored andcommitted
Merge branch 'develop' of JF/PineTime into master
2 parents 09bd6fd + 6420885 commit f534fb0

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.10)
2-
project(pinetime VERSION 0.12.0 LANGUAGES C CXX ASM)
2+
project(pinetime VERSION 0.12.1 LANGUAGES C CXX ASM)
33

44
set(NRF_TARGET "nrf52")
55

src/libs/mynewt-nimble/porting/npl/freertos/src/npl_os_freertos.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,10 @@ void
268268
npl_freertos_callout_init(struct ble_npl_callout *co, struct ble_npl_eventq *evq,
269269
ble_npl_event_fn *ev_cb, void *ev_arg)
270270
{
271+
if(co->handle == NULL) {
271272
memset(co, 0, sizeof(*co));
272273
co->handle = xTimerCreate("co", 1, pdFALSE, co, os_callout_timer_cb);
274+
}
273275
co->evq = evq;
274276
ble_npl_event_init(&co->ev, ev_cb, ev_arg);
275277
}

0 commit comments

Comments
 (0)