From d3b831503c2d8f0c0454b2a79b47ff3a402aafd5 Mon Sep 17 00:00:00 2001 From: Javier Balloffet Date: Wed, 14 Feb 2024 07:49:38 -0300 Subject: [PATCH] Rename init method from Shell class (#219) 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 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. ///