batt_smbus: fix getopt arguments (-A does not have an argument)

This commit is contained in:
Beat Küng 2019-11-05 15:03:34 +01:00
parent ce1ae3fcb7
commit f94236dcc9
1 changed files with 1 additions and 1 deletions

View File

@ -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;