1
0

Modernizing code. Bit more OO design than previously.
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
2021-10-28 11:50:57 +00:00
parent c88eadff35
commit 2b8b4a048a
8 changed files with 70 additions and 65 deletions

View File

@ -8,7 +8,7 @@ CommandHandler::CommandHandler(DisplayProxy *display)
this->display = display;
}
bool CommandHandler::parse(char *cmd)
bool CommandHandler::parse(const char *cmd)
{
Serial.print("Handling: ");
Serial.println(cmd);

View File

@ -5,8 +5,8 @@
class CommandHandler
{
public:
CommandHandler(DisplayProxy *display);
bool parse(char *cmd);
explicit CommandHandler(DisplayProxy *display);
bool parse(const char *cmd);
private:
void debugWrite(int x, int y, const char *text);
DisplayProxy *display;