File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
@@ -121,7 +119,7 @@ static void Usage(char *cmdName) {
121119 "\t\t\tAvailable drivers: gps msp lighttelemetry telemetry omnip\n"
122120#endif
123121#ifdef PIOS_INCLUDE_SPI
124- "\t-g gpionum\tSpecifies the gyro interrupt is on gpionum\n"
122+ "\t-G gpionum\tSpecifies the gyro interrupt is on gpionum\n"
125123 "\t-s spibase\tConfigures a SPI interface on the base path\n"
126124 "\t-d drvname:bus:id\tStarts driver drvname on bus/id\n"
127125 "\t\t\tAvailable drivers: bmm150 bmx055 flyingpio ms5611\n"
@@ -467,7 +465,7 @@ void PIOS_SYS_Args(int argc, char *argv[]) {
467465
468466 bool first_arg = true;
469467
470- while ((opt = getopt (argc , argv , "yfrx :g:l:s:d:S:I:i:" )) != -1 ) {
468+ while ((opt = getopt (argc , argv , "yfrxG :g:l:s:d:S:I:i:" )) != -1 ) {
471469 switch (opt ) {
472470 case 'y' :
473471 use_yasim = true;
@@ -552,7 +550,7 @@ void PIOS_SYS_Args(int argc, char *argv[]) {
552550 break ;
553551#endif
554552#ifdef PIOS_INCLUDE_SPI
555- case 'g ' :
553+ case 'G ' :
556554 {
557555 if (!first_arg ) {
558556 printf ("Gyro int must be before hw\n" );
@@ -581,6 +579,7 @@ void PIOS_SYS_Args(int argc, char *argv[]) {
581579 exit (1 );
582580 }
583581 break ;
582+
584583 case 's' :
585584 {
586585 struct pios_spi_cfg * spi_cfg ;
You can’t perform that action at this time.
0 commit comments