Browse Source

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

alienwalker 4 years ago
parent
commit
459a305f24
2 changed files with 2 additions and 2 deletions
  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){