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/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 15edd28a6 example/capture : fixed build warning
15edd28a6 is described below
commit 15edd28a6988e646fae2507ad6474b86d1a2a4ea
Author: xucheng5 <[email protected]>
AuthorDate: Wed Aug 16 20:16:54 2023 +0800
example/capture : fixed build warning
Signed-off-by: xucheng5 <[email protected]>
---
examples/capture/cap_main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/examples/capture/cap_main.c b/examples/capture/cap_main.c
index 11fac3721..d584dad03 100644
--- a/examples/capture/cap_main.c
+++ b/examples/capture/cap_main.c
@@ -269,7 +269,7 @@ int main(int argc, FAR char *argv[])
else
{
- printf("pwm duty cycle: %d % \n", dutycycle);
+ printf("pwm duty cycle: %d %% \n", dutycycle);
}
/* Get the frequence data using the ioctl */
@@ -287,7 +287,7 @@ int main(int argc, FAR char *argv[])
else
{
- printf("pwm frequence: %d Hz \n", frequence);
+ printf("pwm frequence: %"PRId32" Hz \n", frequence);
}
/* Delay a little bit */