diff options
Diffstat (limited to 'nuttx/graphics/nxconsole/nxcon_driver.c')
-rwxr-xr-x | nuttx/graphics/nxconsole/nxcon_driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/graphics/nxconsole/nxcon_driver.c b/nuttx/graphics/nxconsole/nxcon_driver.c index d4ab71464..8c69272f3 100755 --- a/nuttx/graphics/nxconsole/nxcon_driver.c +++ b/nuttx/graphics/nxconsole/nxcon_driver.c @@ -136,7 +136,7 @@ static ssize_t nxcon_write(FAR struct file *filep, FAR const char *buffer, /* Get exclusive access */ - ret = sem_wait(&priv->exclsem); + ret = nxcon_semwait(priv); if (ret < 0) { return ret; @@ -195,7 +195,7 @@ static ssize_t nxcon_write(FAR struct file *filep, FAR const char *buffer, nxcon_putc(priv, (uint8_t)ch); } - sem_post(&priv->exclsem); + nxcon_sempost(priv); return (ssize_t)buflen; } |