Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed Gamepad2 ELEC2645_Project_el18rg
Dependents: ELEC2645_Project_el18rg
Revision 24:6e6bcdd22159, committed 2020-05-29
- 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;