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.
Revision 3:3c6551467d77, committed 2019-12-03
- Comitter:
- austinterrell
- Date:
- Tue Dec 03 19:37:11 2019 +0000
- Parent:
- 2:2654dc659298
- Commit message:
- Removed some unwanted debug code
Changed in this revision
--- a/Menu.cpp Tue Mar 05 21:24:37 2013 +0000 +++ b/Menu.cpp Tue Dec 03 19:37:11 2019 +0000 @@ -10,6 +10,4 @@ void Menu::add(const Selection &toAdd) { selections.push_back(toAdd); -} - - +} \ No newline at end of file
--- a/Navigator.cpp Tue Mar 05 21:24:37 2013 +0000 +++ b/Navigator.cpp Tue Dec 03 19:37:11 2019 +0000 @@ -29,10 +29,7 @@ } void Navigator::printCursor() -{ - if(activeMenu->selections[cursorPos].childMenu == NULL) printf("No child menu\n"); - else printf("child menu: %s\n", activeMenu->selections[cursorPos].childMenu->menuID); - +{ lcd->locate(0,0); if(cursorLine == 1){ lcd->putc('>');
--- a/Selection.cpp Tue Mar 05 21:24:37 2013 +0000 +++ b/Selection.cpp Tue Dec 03 19:37:11 2019 +0000 @@ -2,5 +2,5 @@ #include "Selection.h" #include "TextLCD.h" -Selection::Selection(void (*fun)(), int position, Menu *child, char* text) : - fun(fun), selText(text), pos(position), childMenu(child) {} +Selection::Selection(void (*fun)(), Menu *child, char* text) : + fun(fun), selText(text), childMenu(child) {}
--- a/Selection.h Tue Mar 05 21:24:37 2013 +0000 +++ b/Selection.h Tue Dec 03 19:37:11 2019 +0000 @@ -10,12 +10,10 @@ public: void (*fun)(); // pointer to a function to execute - char* selText; // selection text - int pos; // selection position + char *selText; // selection text Menu *childMenu; - Selection(void (*)(), int, Menu *, char *); - + Selection(void (*)(), Menu *, char *); }; #endif \ No newline at end of file