You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/11/07 10:12:30 UTC

[incubator-nuttx] branch master updated: lpwan/sx127x: correct device unlock interface to nxmutex_unlock()

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 4b5e3ddf51 lpwan/sx127x: correct device unlock interface to nxmutex_unlock()
4b5e3ddf51 is described below

commit 4b5e3ddf516d05e8b1280b8d41d7e9e511685611
Author: chao an <an...@xiaomi.com>
AuthorDate: Mon Nov 7 15:28:09 2022 +0800

    lpwan/sx127x: correct device unlock interface to nxmutex_unlock()
    
    Signed-off-by: chao an <an...@xiaomi.com>
---
 drivers/wireless/lpwan/sx127x/sx127x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/wireless/lpwan/sx127x/sx127x.c b/drivers/wireless/lpwan/sx127x/sx127x.c
index e7e1ed22c0..3388e2ce9f 100644
--- a/drivers/wireless/lpwan/sx127x/sx127x.c
+++ b/drivers/wireless/lpwan/sx127x/sx127x.c
@@ -942,7 +942,7 @@ errout:
    */
 
   sx127x_opmode_set(dev, dev->idle);
-  nxsem_post(&dev->dev_lock);
+  nxmutex_unlock(&dev->dev_lock);
 
   return ret;
 #endif