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 1:c2c292574f7d, committed 2015-12-16
- Comitter:
- josedaparte
- Date:
- Wed Dec 16 01:15:44 2015 +0000
- Parent:
- 0:5f5b67cb745a
- Commit message:
- presion;
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Dec 16 01:13:11 2015 +0000
+++ b/main.cpp Wed Dec 16 01:15:44 2015 +0000
@@ -17,11 +17,11 @@
switch(tipobanio) {
case 0: //baño rapido
- if(caspresion <= 2.4 && caspresion >= 1.7) { //se lleno
+ if(caspresion >= 2.2) { //se lleno
pc.printf("se lleno y apago ev\n\r");
ev = 0;
}
- if(caspresion <= 1.53 && caspresion >= 1.3) { //se vacio
+ if(caspresion <= 1.53) { //se vacio
cont++;
pc.printf("se vacio\n\r");
pc.printf("%d\n\r", cont);
@@ -33,15 +33,15 @@
}
break;
case 1: //baño normal
- if(caspresion == 2.88) { //se lleno
+ if(caspresion >= 2.6) { //se lleno
pc.printf("se lleno y apago ev\n\r");
ev = 0;
}
- if(caspresion == 1.49) { //se vacio
+ if(caspresion <= 1.53) { //se vacio
cont++;
pc.printf("se vacio\n\r");
pc.printf("%d\n\r", cont);
- if(cont == 100) { //contador
+ if(cont == 20) { //contador
ev = 1;
cont = 0;
pc.printf("se activa la ev\n\r");