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