From 332b51464a75e40f2e306c50092735891acfe406 Mon Sep 17 00:00:00 2001 From: JF Date: Thu, 30 Apr 2020 20:47:28 +0200 Subject: [PATCH] Fix random crash caused by bad implementation of ble_npl_hw_enter_critical(). --- .../porting/npl/freertos/include/nimble/nimble_npl_os.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/mynewt-nimble/porting/npl/freertos/include/nimble/nimble_npl_os.h b/src/libs/mynewt-nimble/porting/npl/freertos/include/nimble/nimble_npl_os.h index f04145d3..d8810f35 100644 --- a/src/libs/mynewt-nimble/porting/npl/freertos/include/nimble/nimble_npl_os.h +++ b/src/libs/mynewt-nimble/porting/npl/freertos/include/nimble/nimble_npl_os.h @@ -282,8 +282,8 @@ static inline uint32_t ble_npl_hw_enter_critical(void) { //vPortEnterCritical(); - npl_freertos_hw_enter_critical(); - return 0; + + return npl_freertos_hw_enter_critical(); } static inline void