Modernizing code. Bit more OO design than previously.
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
This commit is contained in:
@ -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);
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user