mirror of https://github.com/ArduPilot/ardupilot
HAL_Linux: fixed chaining of getopt calls
This commit is contained in:
parent
ea30e5151d
commit
5f0302ed9f
|
@ -186,7 +186,7 @@ void HAL_Linux::init(int argc,char* const argv[]) const
|
||||||
uartE->begin(115200);
|
uartE->begin(115200);
|
||||||
spi->init(NULL);
|
spi->init(NULL);
|
||||||
analogin->init(NULL);
|
analogin->init(NULL);
|
||||||
utilInstance.init(argc+gopt.optind, &argv[gopt.optind]);
|
utilInstance.init(argc+gopt.optind-1, &argv[gopt.optind-1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
const HAL_Linux AP_HAL_Linux;
|
const HAL_Linux AP_HAL_Linux;
|
||||||
|
|
Loading…
Reference in New Issue