ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el18rg

Dependencies:   mbed Gamepad2 ELEC2645_Project_el18rg

Dependents:   ELEC2645_Project_el18rg

Files at this revision

API Documentation at this revision

Comitter:
el18rg
Date:
Fri May 29 21:49:53 2020 +0000
Parent:
23:aa2a10451586
Commit message:
Final Submission. I have read and agreed with Statement of Academic Integrity

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r aa2a10451586 -r 6e6bcdd22159 main.cpp
--- a/main.cpp	Fri May 29 21:33:39 2020 +0000
+++ b/main.cpp	Fri May 29 21:49:53 2020 +0000
@@ -22,6 +22,10 @@
 #define SWATTER_HEIGHT 9
 #define BUG_SPEED 3
 
+#ifdef TESTING
+# include "tests.h"
+#endif
+
 /** objects */
 Gamepad pad;
 N5110 lcd;
@@ -35,7 +39,7 @@
 /** functions */
 int main()
 {
-    #ifdef WITH_TESTING      //running tests
+    #ifdef TESTING      //running tests
     int fails = run_all_tests();
 
     if(fails > 0) return nfails;