forked from Archive/PX4-Autopilot
batt_smbus: fix getopt arguments (-A does not have an argument)
This commit is contained in:
parent
ce1ae3fcb7
commit
f94236dcc9
|
@ -87,7 +87,7 @@ int BATT_SMBUS::task_spawn(int argc, char *argv[])
|
|||
int ch;
|
||||
const char *myoptarg = nullptr;
|
||||
|
||||
while ((ch = px4_getopt(argc, argv, "XTRIA:", &myoptind, &myoptarg)) != EOF) {
|
||||
while ((ch = px4_getopt(argc, argv, "XTRIA", &myoptind, &myoptarg)) != EOF) {
|
||||
switch (ch) {
|
||||
case 'X':
|
||||
busid = BATT_SMBUS_BUS_I2C_EXTERNAL;
|
||||
|
|
Loading…
Reference in New Issue