multiplayer pong game for LPC 1768

Dependencies:   mbed MbedJSONValue mbed-rtos Adafruit_ST7735 Adafruit_GFX EthernetInterface DebouncedInterrupt

Revision:
33:98ba7b0b8c2b
Parent:
32:7cbf4d9a82af
Child:
34:b19f39ad74ac
--- a/main.cpp	Sat Nov 28 03:22:06 2020 +0000
+++ b/main.cpp	Sat Nov 28 03:30:09 2020 +0000
@@ -108,7 +108,7 @@
             
             // cleanup the socket from the previous game
             int flushBytes = 0; 
-            while ((receiveFrom = sock.receiveFrom(nist, tmp_buffer, sizeof(tmp_buffer))) != 0) {}
+            while ((flushBytes = sock.receiveFrom(nist, tmp_buffer, sizeof(tmp_buffer))) != 0) {}
              
             gfx->renderGameOver(gs);