Parse PWM control command arguments as decimal numbers

parent 97b1b8d0
......@@ -200,8 +200,8 @@ static int kestrel_shell_cmd_pwmcontrol(const struct shell *shell, size_t argc,
return -1;
}
channel = strtoul(argv[1], NULL, 16);
value = strtoul(argv[2], NULL, 16);
channel = strtoul(argv[1], NULL, 10);
value = strtoul(argv[2], NULL, 10);
#ifdef SIMPLEPWM_BASE
set_pwm_value((uint8_t*)SIMPLEPWM_BASE, channel, value);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment