HAL_Linux: fixed chaining of getopt instances

This commit is contained in:
Andrew Tridgell 2015-07-01 15:42:07 +10:00
parent c8a6a02be1
commit 355575f793

View File

@ -186,7 +186,7 @@ void HAL_Linux::init(int argc,char* const argv[]) const
uartE->begin(115200);
spi->init(NULL);
analogin->init(NULL);
utilInstance.init(argc, argv);
utilInstance.init(argc+gopt.optind, &argv[gopt.optind]);
}
const HAL_Linux AP_HAL_Linux;