mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 02:53:34 +08:00
removed last useless comments
This commit is contained in:
committed by
Alexander Lerach
parent
57afb5817d
commit
eebacc4f7b
@@ -135,8 +135,10 @@ int mcp23017_register_gpios(uint8_t i2c_bus, uint8_t i2c_addr, int first_minor,
|
|||||||
{
|
{
|
||||||
for (int i = 0; i < NUM_GPIOS; i++) {
|
for (int i = 0; i < NUM_GPIOS; i++) {
|
||||||
uint16_t mask = 1u << i;
|
uint16_t mask = 1u << i;
|
||||||
|
|
||||||
if (dir_mask & mask) {
|
if (dir_mask & mask) {
|
||||||
_gpio[i] = { {GPIO_INPUT_PIN, {}, &mcp23017_gpio_ops}, mask };
|
_gpio[i] = { {GPIO_INPUT_PIN, {}, &mcp23017_gpio_ops}, mask };
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
_gpio[i] = { {GPIO_OUTPUT_PIN, {}, &mcp23017_gpio_ops}, mask };
|
_gpio[i] = { {GPIO_OUTPUT_PIN, {}, &mcp23017_gpio_ops}, mask };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -193,6 +193,7 @@ extern "C" int mcp23017_main(int argc, char *argv[])
|
|||||||
case 'U':
|
case 'U':
|
||||||
config_data.interval = atoi(cli.optArg());
|
config_data.interval = atoi(cli.optArg());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'R':
|
case 'R':
|
||||||
config_data.int_en = (int)strtol(cli.optArg(), nullptr, 0);
|
config_data.int_en = (int)strtol(cli.optArg(), nullptr, 0);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user