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/05/09 06:09:39 UTC

[incubator-nuttx-apps] 01/02: examples/hdc1008_demo: fix wrong printf parameter

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 453d5f2866a86d2a70385c72f0a80753b9d48955
Author: Diego Herranz <di...@diegoherranz.com>
AuthorDate: Fri May 7 23:03:28 2021 +0100

    examples/hdc1008_demo: fix wrong printf parameter
    
    An extra "%d" that shouldn't be there
---
 examples/hdc1008_demo/hdc1008_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/hdc1008_demo/hdc1008_main.c b/examples/hdc1008_demo/hdc1008_main.c
index e669466..0cd72d2 100644
--- a/examples/hdc1008_demo/hdc1008_main.c
+++ b/examples/hdc1008_demo/hdc1008_main.c
@@ -78,7 +78,7 @@ int main(int argc, FAR char *argv[])
 
   printf("Temperature and humidity\n"
          "========================\n");
-  printf("data=%s%d\n\n", buf);
+  printf("data=%s\n\n", buf);
 
   /* Measure using ioctl */