Skip to content

Commit 03ce85f

Browse files
committed
pios_sys: move gyroint arg to -G from -g
Escapes a conflict with the flightgear stuff.
1 parent 19115cc commit 03ce85f

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

flight/PiOS/posix/pios_sys.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@
3333
* of this source file; otherwise redistribution is prohibited.
3434
*/
3535

36-
37-
3836
/* Project Includes */
3937
#if !defined(_GNU_SOURCE)
4038
#define _GNU_SOURCE
@@ -123,7 +121,7 @@ static void Usage(char *cmdName) {
123121
"\t\t\tAvailable drivers: gps msp lighttelemetry telemetry omnip\n"
124122
#endif
125123
#ifdef PIOS_INCLUDE_SPI
126-
"\t-g gpionum\tSpecifies the gyro interrupt is on gpionum\n"
124+
"\t-G gpionum\tSpecifies the gyro interrupt is on gpionum\n"
127125
"\t-s spibase\tConfigures a SPI interface on the base path\n"
128126
"\t-d drvname:bus:id\tStarts driver drvname on bus/id\n"
129127
"\t\t\tAvailable drivers: bmm150 bmx055 flyingpio ms5611\n"
@@ -471,7 +469,7 @@ void PIOS_SYS_Args(int argc, char *argv[]) {
471469

472470
bool first_arg = true;
473471

474-
while ((opt = getopt(argc, argv, "yfrx:g:l:s:d:S:I:i:m:")) != -1) {
472+
while ((opt = getopt(argc, argv, "yfrxG:g:l:s:d:S:I:i:m:")) != -1) {
475473
switch (opt) {
476474
#ifdef PIOS_INCLUDE_SIMSENSORS_YASIM
477475
case 'y':
@@ -559,7 +557,7 @@ void PIOS_SYS_Args(int argc, char *argv[]) {
559557
break;
560558
#endif
561559
#ifdef PIOS_INCLUDE_SPI
562-
case 'g':
560+
case 'G':
563561
{
564562
if (!first_arg) {
565563
printf("Gyro int must be before hw\n");
@@ -588,6 +586,7 @@ void PIOS_SYS_Args(int argc, char *argv[]) {
588586
exit(1);
589587
}
590588
break;
589+
591590
case 's':
592591
{
593592
struct pios_spi_cfg *spi_cfg;

0 commit comments

Comments
 (0)