refactoring into multiple files, not tested on hardware
This commit is contained in:
18
command_processor.h
Normal file
18
command_processor.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef COMMAND_PROCESSOR_H
|
||||
#define COMMAND_PROCESSOR_H
|
||||
|
||||
enum CommandAction {
|
||||
CMD_NONE,
|
||||
CMD_REFRESH,
|
||||
CMD_CLEAR,
|
||||
CMD_WIFI,
|
||||
CMD_UNKNOWN
|
||||
};
|
||||
|
||||
/**
|
||||
* Parses a string to check if it is a command.
|
||||
* Returns the corresponding CommandAction.
|
||||
*/
|
||||
CommandAction parse_command(const char* input);
|
||||
|
||||
#endif // COMMAND_PROCESSOR_H
|
||||
Reference in New Issue
Block a user