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 2021/02/19 18:39:29 UTC

[incubator-nuttx-apps] branch master updated (2e17cd2 -> 771d19b)

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

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


    from 2e17cd2  fsutils: update geometry size (c.f. apache/incubator-nuttx#2861)
     new 08c2911  system/cle: Fix cle application build
     new 771d19b  system/cle: Remove column offset for cursor position

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 system/cle/cle.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)


[incubator-nuttx-apps] 02/02: system/cle: Remove column offset for cursor position

Posted by xi...@apache.org.
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-apps.git

commit 771d19b94aaff5a860ac5b8f4f62268537e601fe
Author: Gustavo Henrique Nihei <gu...@espressif.com>
AuthorDate: Fri Feb 19 09:17:58 2021 -0300

    system/cle: Remove column offset for cursor position
---
 system/cle/cle.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/system/cle/cle.c b/system/cle/cle.c
index 97f9387..c1e1349 100644
--- a/system/cle/cle.c
+++ b/system/cle/cle.c
@@ -1196,7 +1196,7 @@ int cle(FAR char *line, const char *prompt, uint16_t linelen,
       return -EINVAL;
     }
 
-  priv.coloffs = column - 1;
+  priv.coloffs = column;
 
   cleinfo("row=%d column=%d\n", priv.row, column);
 


[incubator-nuttx-apps] 01/02: system/cle: Fix cle application build

Posted by xi...@apache.org.
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-apps.git

commit 08c29110a616fb795278a7696e2470283228759a
Author: Gustavo Henrique Nihei <gu...@espressif.com>
AuthorDate: Thu Feb 18 19:50:32 2021 -0300

    system/cle: Fix cle application build
---
 system/cle/cle.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/system/cle/cle.c b/system/cle/cle.c
index d5f43f2..97f9387 100644
--- a/system/cle/cle.c
+++ b/system/cle/cle.c
@@ -168,7 +168,7 @@ struct cle_s
  ****************************************************************************/
 
 #if CONFIG_SYSTEM_CLE_DEBUGLEVEL > 0
-static int      cle_debug(FAR const char *fmt, ...);
+static void     cle_debug(FAR const char *fmt, ...);
 #endif
 
 /* Low-level display and data entry functions */
@@ -248,17 +248,15 @@ static const char g_setcolor[]     = VT100_FMT_FORE_COLOR;
  ****************************************************************************/
 
 #if CONFIG_SYSTEM_CLE_DEBUGLEVEL > 0
-static int cle_debug(FAR const char *fmt, ...)
+static void cle_debug(FAR const char *fmt, ...)
 {
   va_list ap;
-  int ret;
 
   /* Let vsyslog do the real work */
 
   va_start(ap, fmt);
-  ret = vsyslog(LOG_DEBUG, fmt, ap);
+  vsyslog(LOG_DEBUG, fmt, ap);
   va_end(ap);
-  return ret;
 }
 #endif