Skip to content

Commit

Permalink
Fix game specific message behavior when over 64 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
rzblue committed Nov 2, 2023
1 parent ddc8db6 commit d75e8c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hal/src/main/native/athena/FRCDriverStation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ static int32_t HAL_GetMatchInfoInternal(HAL_MatchInfo* info) {
info->gameSpecificMessage, &info->gameSpecificMessageSize);

if (info->gameSpecificMessageSize > sizeof(info->gameSpecificMessage)) {
info->gameSpecificMessageSize = 0;
info->gameSpecificMessageSize = sizeof(info->gameSpecificMessage);
}

info->matchType = static_cast<HAL_MatchType>(matchType);
Expand Down

0 comments on commit d75e8c3

Please sign in to comment.