RealtimeCompLab2

Dependencies:   mbed

Fork of PPP-Blinky by Nicolas Nackel

Revision:
46:d73a565eaf7c
Parent:
45:ed9112b1734c
Child:
47:00a5ca075f8f
--- a/main.cpp	Wed Jan 18 19:30:31 2017 +0000
+++ b/main.cpp	Wed Jan 18 21:00:13 2017 +0000
@@ -27,12 +27,11 @@
 // https://eternallybored.org/misc/netcat/ - use netcat -u 172.10.10.1 80 to send/receive UDP packets from PPP-Blinky
 
 // The #define below enables/disables a second serial port that prints out interesting diagnostic messages.
-
-//#define SERIAL_PORT_MONITOR_YES
-#define SERIAL_PORT_MONITOR_NO
+// change to SERIAL_PORT_MONITOR_YES to enable diagnistics messages. You will also need a second serial port.
+#define SERIAL_PORT_MONITOR_NO /* or SERIAL_PORT_MONITOR_YES */
 
 #ifndef SERIAL_PORT_MONITOR_NO
-Serial xx(PC_10, PC_11); // Not needed to run - if you want to see this change SERIAL_PORT_MONITOR_NO to SERIAL_PORT_MONITOR_YES
+Serial xx(PC_10, PC_11); // Not necessary to run - if you have a compile error here change line 31 to SERIAL_PORT_MONITOR_NO
 #define debug(x...) xx.printf (x)
 #else
 // no debug monitoring
@@ -552,7 +551,7 @@
             n=n+sprintf(n+dataStart,"<!DOCTYPE html>\n<html><head><title>mbed-PPP-Blinky</title>\n<script>window.onload=function()"); // html start
             n=n+sprintf(n+dataStart,"{setInterval(function(){function x(){return document.getElementById('w');};\n"); // html
             n=n+sprintf(n+dataStart,"x().textContent = parseInt(x().textContent)+1;},100);};</script></head>\n"); // html 
-            n=n+sprintf(n+dataStart,"<body style=\"font-family: sans-serif; font-size:35px; color:#807070\">"); // html
+            n=n+sprintf(n+dataStart,"<body style=\"font-family: sans-serif; font-size:30px; color:#807070\">"); // html
             n=n+sprintf(n+dataStart,"<h1>mbed PPP-Blinky Up and Running</h1>\n<h1 id=\"w\" style=\"text-align:"); // html
             n=n+sprintf(n+dataStart," center;\">0</h1><h1><a href=\"http://bit.ly/pppBlink2\">Source on mbed</a></h1>\n</body></html>\n"); // html end