First Version
Dependencies: EthernetInterface mbed-rtos mbed
Revision 3:94a128e0f316, committed 2016-03-07
- Comitter:
- rebonatto
- Date:
- Mon Mar 07 19:20:49 2016 +0000
- Parent:
- 2:bf4bbf7d6793
- Commit message:
- Vers?o est?vel com nova forma de aquisi??o de valores e limpeza de c?digo desnecess?rio.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r bf4bbf7d6793 -r 94a128e0f316 main.cpp --- a/main.cpp Fri Mar 04 21:18:48 2016 +0000 +++ b/main.cpp Mon Mar 07 19:20:49 2016 +0000 @@ -302,12 +302,13 @@ int SelectOption() { int option; + char s1[100]; while (true) { printf("\n\n"); printf("+-------------------------------------+\n"); - printf("| PMED_Calibra: MENU |\n"); + printf("| PMED_Calibra: MENU Oi |\n"); printf("| 1. RMS Values. |\n"); printf("| 2. Mean Values. |\n"); printf("| 3. Read samples from 1 channel. |\n"); @@ -320,6 +321,12 @@ printf("Select an Option: "); scanf("%d", &option); + //fgets(s1, 10, stdin); + //printf("Lido %s\n", s1); + //option = s1[0] - '0'; + + //printf("Opção %d\n", option); + if ( (option > 8) || (option < 1) ){ printf("\n\n\nInvalid Option! - Retype a valid option\n\n\n "); }