Skip to content
Snippets Groups Projects
Commit 6857b5e7 authored by HoelShare's avatar HoelShare
Browse files
parents 2a3bd700 1efb1420
No related branches found
No related tags found
No related merge requests found
...@@ -154,7 +154,9 @@ void joinGame() { ...@@ -154,7 +154,9 @@ void joinGame() {
ip = irinput.substring(1, irinput.length() - 1); ip = irinput.substring(1, irinput.length() - 1);
unsigned short firstA = ip.indexOf('a'); unsigned short firstA = ip.indexOf('a');
Serial.printf("firstA: %d\n", firstA); 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()); Serial.printf("Received ip: >%s<\n", ip.c_str());
client = new GameClient(ui, &badge, player); client = new GameClient(ui, &badge, player);
...@@ -166,7 +168,7 @@ void joinGame() { ...@@ -166,7 +168,7 @@ void joinGame() {
} }
void loop() { void loop() {
Serial.println("Loop"); //Serial.println("Loop");
ui->dispatchInput(badge.getJoystickState()); ui->dispatchInput(badge.getJoystickState());
ui->draw(); ui->draw();
...@@ -194,7 +196,7 @@ void loop() { ...@@ -194,7 +196,7 @@ void loop() {
if (client) { if (client) {
client->update(); client->update();
} }
Serial.println("Loop - Ende"); //Serial.println("Loop - Ende");
} }
char *loadNick() { 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