diff --git a/andino_firmware/src/app.cpp b/andino_firmware/src/app.cpp index 2f338253..33a26b4b 100644 --- a/andino_firmware/src/app.cpp +++ b/andino_firmware/src/app.cpp @@ -130,7 +130,7 @@ void App::setup() { right_pid_controller_.reset(right_encoder_.read()); // Initialize command shell. - shell_.init(Serial); + shell_.begin(Serial); shell_.set_default_callback(cmd_unknown_cb); shell_.register_command(Commands::kReadAnalogGpio, cmd_read_analog_gpio_cb); shell_.register_command(Commands::kReadDigitalGpio, cmd_read_digital_gpio_cb); diff --git a/andino_firmware/src/shell.cpp b/andino_firmware/src/shell.cpp index 6c8dfdc0..ca72c759 100644 --- a/andino_firmware/src/shell.cpp +++ b/andino_firmware/src/shell.cpp @@ -33,7 +33,7 @@ namespace andino { -void Shell::init(Stream& stream) { stream_ = &stream; } +void Shell::begin(Stream& stream) { stream_ = &stream; } void Shell::set_default_callback(CommandCallback callback) { default_callback_ = callback; } diff --git a/andino_firmware/src/shell.h b/andino_firmware/src/shell.h index b4a8212b..1d1e0cff 100644 --- a/andino_firmware/src/shell.h +++ b/andino_firmware/src/shell.h @@ -44,7 +44,7 @@ class Shell { /// @brief Initializes the shell. /// /// @param stream Data stream. - void init(Stream& stream); + void begin(Stream& stream); /// @brief Sets the default callback for unknown commands. ///