diff options
author | JF <jf@codingfield.com> | 2020-04-30 20:47:28 +0200 |
---|---|---|
committer | JF <jf@codingfield.com> | 2020-04-30 20:47:28 +0200 |
commit | 332b51464a75e40f2e306c50092735891acfe406 (patch) | |
tree | 9ccb1eacba3362fec979a367e9311deda1aa3714 /src/libs/mynewt-nimble/porting/npl/freertos/include/nimble/nimble_npl_os.h | |
parent | 833c53424a211f34774fa210be3eb96ad4f35210 (diff) |
Fix random crash caused by bad implementation of ble_npl_hw_enter_critical().
Diffstat (limited to 'src/libs/mynewt-nimble/porting/npl/freertos/include/nimble/nimble_npl_os.h')
-rw-r--r-- | src/libs/mynewt-nimble/porting/npl/freertos/include/nimble/nimble_npl_os.h | 4 |
1 files 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 |