HAL_Linux: fixed chaining of getopt calls

This commit is contained in:
Andrew Tridgell 2015-07-01 20:40:07 +10:00
parent ea30e5151d
commit 5f0302ed9f
1 changed files with 1 additions and 1 deletions

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+gopt.optind, &argv[gopt.optind]);
utilInstance.init(argc+gopt.optind-1, &argv[gopt.optind-1]);
}
const HAL_Linux AP_HAL_Linux;