From 8f5e26acd1a85ae8b94224d7e412e7b8520ecdfb Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Mon, 24 Jan 2022 12:50:27 +0100 Subject: [PATCH] fix read command with length --- src/console.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/console.cpp b/src/console.cpp index 50a9feb4d..63068352e 100644 --- a/src/console.cpp +++ b/src/console.cpp @@ -245,7 +245,7 @@ void EMSESPShell::add_console_commands() { commands->add_command(ShellContext::MAIN, CommandFlags::USER, flash_string_vector{F_(read)}, - flash_string_vector{F_(deviceid_mandatory), F_(typeid_mandatory), F_(offset_optional)}, + flash_string_vector{F_(deviceid_mandatory), F_(typeid_mandatory), F_(offset_optional), F_(length_optional)}, [=](Shell & shell __attribute__((unused)), const std::vector & arguments) { uint8_t device_id = Helpers::hextoint(arguments.front().c_str());