Lab2_web / Mbed 2 deprecated webserverBlinky

Dependencies:   mbed

Fork of webserverBlinky by RealTimeCompLab2

Revision:
88:b4a71242837c
Parent:
87:9f5ac1fabd95
Child:
89:2c8dd0c2a426
--- a/main.cpp	Fri Jul 21 00:35:24 2017 +0000
+++ b/main.cpp	Fri Jul 21 01:02:04 2017 +0000
@@ -35,11 +35,9 @@
 
 // here we define the debug serial port for the various target boards
 // add yours if it's not in here
-#if TARGET_LPC1768
+#if defined(TARGET_LPC1768)
 Serial xx(p9, p10); // Second serial port on LPC1768 - not required to run, if you get compile error here, change #define SERIAL_PORT_MONITOR_YES to #define SERIAL_PORT_MONITOR_NO
-#elif TARGET_NUCLEO_F446RE
-Serial xx(PC_10, PC_11); // Second serial port on NUCLEO boards - not required to run, if you get compile error here, change #define SERIAL_PORT_MONITOR_YES to #define SERIAL_PORT_MONITOR_NO
-#elif TARGET_NUCLEO_L152RE
+#elif defined(TARGET_NUCLEO_F446RE) || defined(TARGET_NUCLEO_L152RE)
 Serial xx(PC_10, PC_11); // Second serial port on NUCLEO boards - not required to run, if you get compile error here, change #define SERIAL_PORT_MONITOR_YES to #define SERIAL_PORT_MONITOR_NO
 #else
 #error Add your target board's second serial port here if you want to use debugging - or choose SERIAL_PORT_MONITOR_NO