Jelajahi Sumber

fix:lora2/luat_lib_lora.c的死机bug

alienwalker 1 tahun lalu
induk
melakukan
afa065349e
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      components/lora2/luat_lib_lora.c

+ 1 - 1
components/lora2/luat_lib_lora.c

@@ -160,7 +160,7 @@ static int luat_lora_init(lua_State *L){
             LLOGE("out of memory when malloc lora_device");
             return 0;
         }
-        RadioEvents_t RadioEvents;
+        RadioEvents_t RadioEvents = {0};
         uint8_t id = 0,cs = 0,res = 0,busy = 0,dio1 = 0;
         lora_device->lora_init = true;
         if (lua_istable(L, 2)) {