From 75843d7e163f97fd42f96661863c1de664b08cc8 Mon Sep 17 00:00:00 2001
From: Guo Wenxue <guowenxue@gmail.com>
Date: Sun, 07 Jul 2024 19:28:29 +0800
Subject: [PATCH] Update modules led source code to support other pins

---
 modules/pwm.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/pwm.c b/modules/pwm.c
index ac1412f..542971b 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");
@@ -195,7 +195,7 @@
 }
 
 /* configure PWM $channel */
-int config_pwm(int channel, int freq, int duty) 
+int config_pwm(int channel, int freq, int duty)
 {
 	int           fd;
 	char          buf[32];
@@ -240,7 +240,7 @@
 	if( (rv=export_pwm(channel, 1)) )
 	{
 		printf("export PWM channel[%d] failed, rv=%d\n", channel, rv);
-		return rv; 
+		return rv;
 	}
 
 	if( (rv=config_pwm(channel, freq, duty)) )

--
Gitblit v1.9.1