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
Diff: main.cpp
- Revision:
- 4:21ddb5cfccdf
- Parent:
- 3:2ffb7f153526
- Child:
- 5:719b008ce117
--- a/main.cpp Tue Oct 20 07:46:05 2015 +0000
+++ b/main.cpp Tue Oct 20 07:51:57 2015 +0000
@@ -38,7 +38,7 @@
switch(select_0)
{
case('1'):
- while(1)
+ do
{
if(menu_1==0)
{
@@ -54,14 +54,12 @@
menu_1 = 0;
switch(select_1)
{
- case('1'): pc.printf("Pattern1\n"); break;
+ case('1'): pc.printf("Pattern1\n");
- case('2'): pc.printf("Pattern2\n");break;
-
- case('3'): break;
+ case('2'): pc.printf("Pattern2\n");
}
}
- }
+ }while(select_1 == 3)
case('2'):
pc.printf("Read Status\n");
break;