diff --git a/src/communication/commands.h b/src/communication/commands.h index 9944fff..c32fbf5 100644 --- a/src/communication/commands.h +++ b/src/communication/commands.h @@ -10,7 +10,8 @@ typedef enum : uint8_t { CmdCreateWindow = 3, CmdDestroyWindow = 4, CmdUpdateWinDims = 5, // NOTE: change this to a move cmd instead - CmdUpdateWin = 6 + CmdUpdateWin = 6, + CMDData = 7, } Command; char* CommandToStr(Command id); diff --git a/src/main.cpp b/src/main.cpp index 52b1076..91fc90f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -160,6 +160,15 @@ void loop(void) { break; } + case CMDData: { + // Data groups of: windowData { + // idx int16 4 bytes + // data char* 32 bytes + // } + // Packet will be: Data { + // [windowData] + // } + } default: LOG_WARN(F("Command: `%s` has not been implemented yet."), CommandToStr(cmd)); }