Explorar o código

Merge branch 'master' of https://gitee.com/openLuat/luatos-soc-air105

alienwalker %!s(int64=4) %!d(string=hai) anos
pai
achega
459a305f24
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      application/include/luat_conf_bsp.h
  2. 1 1
      application/src/luat_rtos_air105.c

+ 1 - 1
application/include/luat_conf_bsp.h

@@ -23,7 +23,7 @@
 #ifndef LUAT_CONF_BSP
 #define LUAT_CONF_BSP
 
-#define LUAT_BSP_VERSION "V0005"
+#define LUAT_BSP_VERSION "V0006"
 
 
 #define LUAT_USE_FS_VFS 1

+ 1 - 1
application/src/luat_rtos_air105.c

@@ -45,7 +45,7 @@ int luat_sem_delete(luat_sem_t* semaphore){
 }
 
 int luat_sem_take(luat_sem_t* semaphore,uint32_t timeout){
-    return xSemaphoreTake(semaphore->userdata, timeout);
+    return (xSemaphoreTake(semaphore->userdata, timeout)==pdFALSE?-1:0);
 }
 
 int luat_sem_release(luat_sem_t* semaphore){