From 9783dc6b47f7a99bb1fcb303eef47698e5a06ab8 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Wed, 13 Apr 2016 15:46:10 +0200 Subject: [PATCH] Make houtpwm code and documentation match Fixes #1578 --- rpp-test-sw/commands/cmd_hout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpp-test-sw/commands/cmd_hout.c b/rpp-test-sw/commands/cmd_hout.c index 71a5a75..47e66af 100644 --- a/rpp-test-sw/commands/cmd_hout.c +++ b/rpp-test-sw/commands/cmd_hout.c @@ -126,7 +126,7 @@ int cmd_do_hout_pwm(cmd_io_t *cmd_io, const struct cmd_des *des, char *param[]) double period = hout_pwm_get_period(pin); uint32_t duty = hout_pwm_get_duty(pin); - rpp_sci_printf("houtpwm%d_period=%g\r\nhoutpwm%d_duty=%u%%", pin+1, period, pin+1, duty); + rpp_sci_printf("houtpwm%d_period=%g\r\nhoutpwm%d_duty=%u%%\n", pin+1, period, pin+1, duty); return 0; } } @@ -270,7 +270,7 @@ cmd_des_t const cmd_des_hout_pwm = { "\n" " --> houtpwm1\n" " houtpwm1_period=1000\n" - " houtpwm1_duty=25\n" + " houtpwm1_duty=25%\n" "\n" "Prints the actual period of HOUT1 PWM in microseconds and the duty\n" "cycle in percents.\n", -- 2.39.2