From e3781100b71c5cc40fdb3d8c1ff6e3dff055056b Mon Sep 17 00:00:00 2001 From: Javier Balloffet Date: Sun, 11 Feb 2024 17:57:44 +0100 Subject: [PATCH] Rename init method from Shell class Signed-off-by: Javier Balloffet --- andino_firmware/src/app.cpp | 2 +- andino_firmware/src/shell.cpp | 2 +- andino_firmware/src/shell.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/andino_firmware/src/app.cpp b/andino_firmware/src/app.cpp index 86700174..4d40f599 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. ///