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

This commit is contained in:
Beat Küng
2019-11-07 10:56:27 +01:00
parent ce1ae3fcb7
commit f94236dcc9
+1 -1
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;