mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-14 22:43:34 +08:00
i2c_spi_buses:Track NuttX change to getopts avoid name collision
NuttX #defined optarg and getopt to move to TLS. This fixes the name collision.
This commit is contained in:
committed by
Julian Oes
parent
64db89ab20
commit
84dd8839a2
@@ -92,13 +92,13 @@ public:
|
||||
/**
|
||||
* Like px4_getopt(), but adds and handles i2c/spi driver-specific arguments
|
||||
*/
|
||||
int getopt(int argc, char *argv[], const char *options);
|
||||
int getOpt(int argc, char *argv[], const char *options);
|
||||
|
||||
/**
|
||||
* returns the current optional argument (for options like 'T:'), or the command (e.g. "start")
|
||||
* @return nullptr or argument/command
|
||||
*/
|
||||
const char *optarg() const { return _optarg; }
|
||||
const char *optArg() const { return _optarg; }
|
||||
|
||||
|
||||
I2CSPIBusOption bus_option{I2CSPIBusOption::All};
|
||||
|
||||
Reference in New Issue
Block a user