Skip to content
Snippets Groups Projects
Commit 1efb1420 authored by OleL's avatar OleL
Browse files

... (*rennt immernoch panisch im Kreis*)

parent 488e58ff
No related branches found
No related tags found
No related merge requests found
......@@ -154,7 +154,9 @@ void joinGame() {
ip = irinput.substring(1, irinput.length() - 1);
unsigned short firstA = ip.indexOf('a');
Serial.printf("firstA: %d\n", firstA);
ip = ip.substring(firstA, ip.length());
if (firstA < 65535) {
ip = ip.substring(firstA, ip.length());
}
Serial.printf("Received ip: >%s<\n", ip.c_str());
client = new GameClient(ui, &badge, player);
......@@ -166,7 +168,7 @@ void joinGame() {
}
void loop() {
Serial.println("Loop");
//Serial.println("Loop");
ui->dispatchInput(badge.getJoystickState());
ui->draw();
......@@ -194,7 +196,7 @@ void loop() {
if (client) {
// client->update();
}
Serial.println("Loop - Ende");
//Serial.println("Loop - Ende");
}
char *loadNick() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment