FRA221:A / Mbed 2 deprecated Lab03

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
kantapon501
Date:
Tue Oct 20 07:57:43 2015 +0000
Parent:
4:21ddb5cfccdf
Commit message:
lab3;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Oct 20 07:51:57 2015 +0000
+++ b/main.cpp	Tue Oct 20 07:57:43 2015 +0000
@@ -44,7 +44,7 @@
                             {
                                 pc.printf("Input 1 for Pattern1\n");
                                 pc.printf("Input 2 for Pattern2\n");
-                                pc.printf("Input 3 for Exit");
+                                pc.printf("Input 3 for Exit\n");
                                 menu_1 = 1;
                             }
                             if(pc.readable())
@@ -59,7 +59,7 @@
                                     case('2'): pc.printf("Pattern2\n");
                                 }
                             }
-                        }while(select_1 == 3)
+                        }while(select_1 != 3); break;
                     case('2'):
                         pc.printf("Read Status\n");
                         break;