Przeglądaj źródła

fix:eink异步方式通信失败时,死机

doudou 1 rok temu
rodzic
commit
9bedc0684d
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      components/eink/luat_lib_eink.c

+ 1 - 1
components/eink/luat_lib_eink.c

@@ -69,7 +69,7 @@ static int l_eink_init(lua_State* L) {
         econf.port = LUAT_EINK_SPI_DEVICE;
         econf.port = LUAT_EINK_SPI_DEVICE;
     }
     }
     if (econf.async){
     if (econf.async){
-      luat_rtos_task_create(&econf.eink_task_handle, 512, 50, "eink", EPD_Task, NULL, 0);
+      luat_rtos_task_create(&econf.eink_task_handle, 1024, 50, "eink", EPD_Task, NULL, 0);
       luat_rtos_queue_create(&econf.eink_queue_handle, 5, sizeof(uint8_t));
       luat_rtos_queue_create(&econf.eink_queue_handle, 5, sizeof(uint8_t));
     }
     }
     EPD_Model(luaL_checkinteger(L, 1));
     EPD_Model(luaL_checkinteger(L, 1));