From cbbab621e5e5d3b1407bd898544ab8b7487563a3 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Tue, 12 Mar 2024 17:18:44 +0800
Subject: [PATCH] Update led and pwm source code to remove compile warnning

---
 modules/pwm.c  |    2 +-
 modules/leds.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/leds.c b/modules/leds.c
index 7ea158b..6f68356 100644
--- a/modules/leds.c
+++ b/modules/leds.c
@@ -107,7 +107,7 @@
         printf("initial leds gpio failure, rv=%d\n", rv);
         return 1;
     }
-    printf("initial RGB Led gpios okay\n", rv);
+    printf("initial RGB Led gpios okay\n");
 
     signal(SIGINT,  sig_handler);
     signal(SIGTERM, sig_handler);
diff --git a/modules/pwm.c b/modules/pwm.c
index ac1412f..6c8f5d8 100644
--- a/modules/pwm.c
+++ b/modules/pwm.c
@@ -57,7 +57,7 @@
 
     printf(" -c[channel ]  Specify PWM channel, such as 0\n");
     printf(" -f[freq    ]  Specify PWM frequency, default 2500(Hz)\n");
-    printf(" -d[duty    ]  Specify PWM duty, default 50(50%)\n");
+    printf(" -d[duty    ]  Specify PWM duty, default 50(50%%)\n");
     printf(" -s[status  ]  Specify PWM status: 1->on(default), 0->off\n");
     printf(" -h[help    ]  Display this help information\n");
     printf(" -v[version ]  Display the program version\n");

--
Gitblit v1.9.1