Skip to content

Commit 868f356

Browse files
committed
More fixes
1 parent be1a217 commit 868f356

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/serial/command_handlers/hostname.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
const char* const TAG = "Serial::CommandHandlers::Domain";
1111

12-
static void handeGet(std::string_view arg, bool isAutomated)
12+
static void handleGet(std::string_view arg, bool isAutomated)
1313
{
1414
if (!arg.empty()) {
1515
SERPR_ERROR("Get command does not support parameters");
@@ -40,7 +40,7 @@ OpenShock::Serial::CommandGroup OpenShock::Serial::CommandHandlers::HostnameHand
4040
{
4141
auto group = OpenShock::Serial::CommandGroup("hostname"sv);
4242

43-
auto& getCommand = group.addCommand("Get the network hostname."sv, handeGet);
43+
auto& getCommand = group.addCommand("Get the network hostname."sv, handleGet);
4444

4545
auto& setCommand = group.addCommand("set"sv, "Set the network hostname."sv, handleSet);
4646
setCommand.addArgument("hostname"sv, "must be a string"sv, "OpenShock"sv);

src/serial/command_handlers/jsonconfig.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
#include "config/Config.h"
55

6+
#include <esp_system.h>
7+
68
static void handleGet(std::string_view arg, bool isAutomated)
79
{
810
if (!arg.empty()) {

src/serial/command_handlers/restart.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
#include <esp_system.h>
55

6-
#include <esp_system.h>
7-
86
static void handleRestart(std::string_view arg, bool isAutomated)
97
{
108
(void)arg;

0 commit comments

Comments
 (0)