Explorar el Código

fix the assert bug

区荣杰 hace 4 años
padre
commit
1e06c20b67
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      porting/npl/rtthread/src/nimble_port_rtthread.c

+ 3 - 0
porting/npl/rtthread/src/nimble_port_rtthread.c

@@ -3,6 +3,7 @@
  *
  *
  * Date           Author       Notes
  * Date           Author       Notes
  * 2018-12-18     ChenYong     first implementation
  * 2018-12-18     ChenYong     first implementation
+ * 2021-08-19     WaterFishJ   fix the assert bug
  */
  */
 
 
 
 
@@ -18,10 +19,12 @@ static rt_thread_t ll_task_h;
 
 
 extern void ble_ll_task(void *arg);
 extern void ble_ll_task(void *arg);
 
 
+#ifdef RT_DEBUG
 RT_WEAK void __aeabi_assert(const char *expr, const char *file, int line)
 RT_WEAK void __aeabi_assert(const char *expr, const char *file, int line)
 {
 {
     rt_assert_handler(expr, file, line);
     rt_assert_handler(expr, file, line);
 }
 }
+#endif
 
 
 int nimble_port_rtthread_init(void)
 int nimble_port_rtthread_init(void)
 {
 {