nahuel de la vega
/
presionRyN
parte de presión
Diff: main.cpp
- Revision:
- 1:ebeb3d48c375
- Parent:
- 0:755152c45706
- Child:
- 2:070d29e86c89
--- a/main.cpp Mon Dec 14 16:09:26 2015 +0000 +++ b/main.cpp Mon Dec 14 23:45:37 2015 +0000 @@ -33,7 +33,7 @@ lcd.locate(0,1); lcd.printf("pres=%.2f EV= %d",caspresion,ev); } - if(caspresion == 0 && BA==1 ) + if(caspresion <= 0.9 && BA==1 ) { BA = 0; lcd.locate(0,1); @@ -59,7 +59,7 @@ lcd.locate(0,1); lcd.printf("pres=%.2f EV= %d",caspresion,ev); } - if( caspresion == 0 && BA==1 ) { + if( caspresion <= 0.9 && BA==1 ) { BA = 0; lcd.locate(0,1); lcd.printf("pres=%.2f EV= %d",caspresion,ev); @@ -69,6 +69,11 @@ lcd.locate(0,1); lcd.printf("pres=%.2f EV= %d",caspresion,ev); } + if ( BA == 1 ) { + + lcd.locate(0,1); + lcd.printf("pres=%.2f EV= %d",caspresion,ev); + } break; default: