examples/foc: fix compilation for open-loop without angle observer

This commit is contained in:
raiden00pl 2023-11-07 17:58:15 +01:00 committed by Petro Karashchenko
parent b52f7dae0c
commit cb36d9c8b2

View File

@ -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 '?':