From 0544703dc600d3534f6124d6a98b83cba407ba0a Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Fri, 6 Mar 2026 00:04:17 +0000 Subject: [PATCH] adding the data transfer commands --- src/communication/commands.h | 3 ++- src/main.cpp | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) 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)); }