FIX: Read broadcasts poll in LinkRawWireless returning no rooms

This commit is contained in:
Rodrigo Alfonso 2024-02-05 01:47:49 -03:00
parent cb0bec9d79
commit 400f60f457
2 changed files with 8 additions and 5 deletions

View File

@ -618,7 +618,10 @@ void DebugScene::processCommand(u32 selectedCommandIndex) {
linkRawWireless->toHex(servers[i].nextClientNumber, 2));
}
log("NOW CALL 0x1e!");
if (response.serversSize > 0)
log("NOW CALL 0x1e!");
else
log("No rooms? NOW CALL 0x1e!");
}
return success;

View File

@ -318,7 +318,7 @@ class LinkRawWireless {
return true;
}
bool broadcastReadPoll(BroadcastReadPollResponse response) {
bool broadcastReadPoll(BroadcastReadPollResponse& response) {
auto result = sendCommand(LINK_RAW_WIRELESS_COMMAND_BROADCAST_READ_POLL);
bool success =
result.success &&
@ -354,9 +354,6 @@ class LinkRawWireless {
response.servers[response.serversSize++] = server;
}
LRWLOG("state = AUTHENTICATED");
state = AUTHENTICATED;
return true;
}
@ -369,6 +366,9 @@ class LinkRawWireless {
return false;
}
LRWLOG("state = AUTHENTICATED");
state = AUTHENTICATED;
return true;
}