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: Terminal
Diff: testconsole.cpp
- Revision:
- 2:399e080c4909
- Parent:
- 1:c6deb449c132
- Child:
- 3:f308cd7a34ed
--- a/testconsole.cpp Fri May 01 04:24:48 2015 +0000 +++ b/testconsole.cpp Fri May 01 13:34:09 2015 +0000 @@ -43,11 +43,13 @@ int TestConsole::process_cmd(char cmd){ - for(int index=0; index < page[current_page].num_menuitems; index++){ - if('x' == cmd) { - page_change(previous_page); - return 0; - } + if('x' == cmd) { + page_change(previous_page); + return 0; + } + + for(int index=0; index < page[current_page].num_menuitems; index++){ + if(page[current_page].command_letter[index] == cmd) {