Skip to content

Commit 5acfffa

Browse files
committed
pios_sys: move gyroint arg to -G from -g
Escapes a conflict with the flightgear stuff.
1 parent f2504c6 commit 5acfffa

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:")) != -1) {
472+
while ((opt = getopt(argc, argv, "yfrxG:g:l:s:d:S:I:i:")) != -1) {
475473
switch (opt) {
476474
#ifdef PIOS_INCLUDE_SIMSENSORS_YASIM
477475
case 'y':
@@ -558,7 +556,7 @@ void PIOS_SYS_Args(int argc, char *argv[]) {
558556
break;
559557
#endif
560558
#ifdef PIOS_INCLUDE_SPI
561-
case 'g':
559+
case 'G':
562560
{
563561
if (!first_arg) {
564562
printf("Gyro int must be before hw\n");
@@ -587,6 +585,7 @@ void PIOS_SYS_Args(int argc, char *argv[]) {
587585
exit(1);
588586
}
589587
break;
588+
590589
case 's':
591590
{
592591
struct pios_spi_cfg *spi_cfg;

0 commit comments

Comments
 (0)