Now LinkRawWireless_demo can perform ghost sends

This commit is contained in:
Rodrigo Alfonso 2025-02-03 21:14:18 -03:00
parent 97adf6a8b0
commit c6b399f5b2
2 changed files with 5 additions and 1 deletions

View File

@ -378,7 +378,7 @@ Let's call these `BroadcastReadStart`, `BroadcastReadPoll`, and `BroadcastReadEn
- **Host**: `ReceiveData`
- Receives `{rcvHeader}`, 20
🔁 This command can also be used with one header and **no data**. In this case, it will resend the last N bytes (based on the header) of the last packet. Until we have a better name, we'll call this **ghost sends**.
🔁 This command can also be used with one header and **no data**. In this case, it will resend the last N bytes (based on the header), up to 4. This is probably just garbage that stays in the hardware buffer, but since clients cannot take initiative, some games send 1 byte and no data on the server side to let clients talk. Until we have a better name, we'll call this **ghost sends**.
#### SendDataWait - `0x25`

View File

@ -933,6 +933,10 @@ std::vector<u32> DebugScene::selectDataToSend() {
data.push_back(bytes);
if (selectOption(">> Include data?", std::vector<std::string>{"yes", "no"}) ==
1)
return data;
u32 words = (bytes + 3) / 4;
for (u32 i = 0; i < (u32)words; i++) {
int word = selectU32("Word " + std::to_string(i + 1) + "/" +