mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 18:33:33 +08:00
format src/systemcmds/pwm
This commit is contained in:
@@ -187,8 +187,7 @@ pwm_main(int argc, char *argv[])
|
||||
|
||||
break;
|
||||
|
||||
case 'p':
|
||||
{
|
||||
case 'p': {
|
||||
/* check if this is a param name */
|
||||
if (strncmp("p:", optarg, 2) == 0) {
|
||||
|
||||
@@ -203,12 +202,15 @@ pwm_main(int argc, char *argv[])
|
||||
|
||||
if (gret == 0) {
|
||||
pwm_value = pwm_parm;
|
||||
|
||||
} else {
|
||||
usage("PARAM LOAD FAIL");
|
||||
}
|
||||
|
||||
} else {
|
||||
usage("PARAM NAME NOT FOUND");
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
pwm_value = strtoul(optarg, &ep, 0);
|
||||
|
||||
Reference in New Issue
Block a user