Lab2_web / Mbed 2 deprecated webserverBlinky

Dependencies:   mbed

Fork of webserverBlinky by RealTimeCompLab2

Revision:
90:55e0f243a7ce
Parent:
89:2c8dd0c2a426
Child:
91:5141ae9fba53
diff -r 2c8dd0c2a426 -r 55e0f243a7ce main.cpp
--- a/main.cpp	Sat Jul 22 23:22:05 2017 +0000
+++ b/main.cpp	Sun Jul 23 00:23:49 2017 +0000
@@ -50,7 +50,7 @@
 #endif
 
 // verbosity flag used in debug printouts - change to 0 to see less debug info. Lots of interesting info.
-#define v0 1
+#define v0 0
 // verbosity flag used in debug printouts - change to 0 to see less debug info. Lots of interesting info.
 #define v1 0
 // verbosity flag used in debug printouts - change to 0 to see less debug info. Lots of interesting info.
@@ -230,8 +230,8 @@
     if (ppp.pkt.crc == 0xf0b8) { // check for good CRC
         void determinePacketType(); // declaration only
         determinePacketType();
-    } else if (v0) {
-        // debug("PPP FCS(crc) Error CRC=%x Length = %d\n",ppp.pkt.crc,ppp.pkt.len); // ignore packets with CRC errors but print a debug line
+    } else {
+        debug("PPP FCS(crc) Error CRC=%x Length = %d\n",ppp.pkt.crc,ppp.pkt.len); // ignore packets with CRC errors but print a debug line
     }
 }
 
@@ -932,7 +932,6 @@
         void * found2 = memchr( (char *)ppp.rx.buf, 0x7e, RXBUFLEN );
         if( (found1 != NULL) | (found2 != NULL) ) {
             if (found1 != NULL) {
-                memset(ppp.rx.buf, 0x20, RXBUFLEN); // clear the receive buffer
                 // respond with Windows Dialup networking expected "Direct Connection Between Two Computers" response string
                 pc.puts("CLIENTSERVER");
                 if (v0) debug("Found connect string \"CLIENTCLIENT\"\n");