mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Makes SetTeam use Mdns
This commit is contained in:
@@ -41,9 +41,9 @@ void NetworkTable::SetServerMode() { s_client = false; }
|
||||
void NetworkTable::SetTeam(int team) {
|
||||
char tmp[30];
|
||||
#ifdef _MSC_VER
|
||||
sprintf_s(tmp, "%d.%d.%d.%d\n", 10, team / 100, team % 100, 2);
|
||||
sprintf_s(tmp, "roboRIO-%d-FRC.local\n", team);
|
||||
#else
|
||||
std::snprintf(tmp, 30, "%d.%d.%d.%d\n", 10, team / 100, team % 100, 2);
|
||||
std::snprintf(tmp, 30, "roboRIO-%d-FRC.local\n",team);
|
||||
#endif
|
||||
SetIPAddress(tmp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user