]> rtime.felk.cvut.cz Git - pes-rpp/rpp-test-sw.git/commitdiff
Make houtpwm code and documentation match
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 13 Apr 2016 13:46:10 +0000 (15:46 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 13 Apr 2016 13:46:10 +0000 (15:46 +0200)
Fixes #1578

rpp-test-sw/commands/cmd_hout.c

index 71a5a75c78d15bde19ff402f3e2a857294e516bf..47e66af7936a2ad183f52454c961d39636bdd022 100644 (file)
@@ -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",