Browse Source

fix: 开启nimble后内存不够导致死机,只能缩减lua的内存了

Wendal Chen 1 năm trước cách đây
mục cha
commit
334bb84715
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      luatos/components/luat/port/luat_malloc_idf5.c

+ 1 - 1
luatos/components/luat/port/luat_malloc_idf5.c

@@ -17,7 +17,7 @@
 #ifndef LUAT_HEAP_SIZE
 #if defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32S3)
 #if defined(LUAT_USE_NIMBLE) || defined(LUAT_USE_TLS)
-#define LUAT_HEAP_SIZE (96*1024)
+#define LUAT_HEAP_SIZE (72*1024)
 #else
 #define LUAT_HEAP_SIZE (112*1024)
 #endif