mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-16 18:03:23 +00:00
examples/foc: fix compilation for open-loop without angle observer
This commit is contained in:
parent
b52f7dae0c
commit
cb36d9c8b2
1 changed files with 2 additions and 0 deletions
|
|
@ -441,6 +441,7 @@ void parse_args(FAR struct args_s *args, int argc, FAR char **argv)
|
|||
break;
|
||||
}
|
||||
|
||||
# ifdef CONFIG_EXAMPLES_FOC_ANGOBS
|
||||
case OPT_OLTHR:
|
||||
{
|
||||
args->cfg.ol_thr = atoi(optarg);
|
||||
|
|
@ -452,6 +453,7 @@ void parse_args(FAR struct args_s *args, int argc, FAR char **argv)
|
|||
args->cfg.ol_hys = atoi(optarg);
|
||||
break;
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
|
||||
case '?':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue