diff --git a/gpio_controllers/src/gpio_command_controller.cpp b/gpio_controllers/src/gpio_command_controller.cpp index e279c0b88d..36bce27bf4 100644 --- a/gpio_controllers/src/gpio_command_controller.cpp +++ b/gpio_controllers/src/gpio_command_controller.cpp @@ -174,7 +174,7 @@ void GpioCommandController::store_command_interface_types() void GpioCommandController::store_state_interface_types() { - for (const auto & entry : params_.command_interfaces.gpios_map) + for (const auto & entry : params_.state_interfaces.gpios_map) { const auto & gpio_name = entry.first; const auto & interfaces = entry.second;