Makes SetTeam use Mdns

This commit is contained in:
Thad House
2015-11-19 23:02:39 -08:00
parent 44ba8823d7
commit 2e050b0540
3 changed files with 11 additions and 11 deletions

View File

@@ -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);
}