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
Revision 2:6512be2fff1a, committed 2015-12-07
- Comitter:
- nahuel473cba
- Date:
- Mon Dec 07 21:39:04 2015 +0000
- Parent:
- 1:09d707139cdf
- Commit message:
- menu auto 3.0
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 09d707139cdf -r 6512be2fff1a main.cpp
--- a/main.cpp Mon Dec 07 21:27:50 2015 +0000
+++ b/main.cpp Mon Dec 07 21:39:04 2015 +0000
@@ -22,7 +22,7 @@
case 0:
if ((hora > horain||(hora == horain && min >= minin)) && ( hora < horafin ||(hora == horafin && min <= minfin))) {
optimo= -(11/10*texterno)+50;
- if (optimo > 25 ) {
+ if (optimo > 25 && optimo < 65) {
Vres = (optimo*8/100)-2;
pc.printf("Vres= %f\n\r",Vres);
wait(2);
@@ -40,7 +40,7 @@
case 1:
if ((hora > horain||(hora == horain && min >= minin)) && ( hora < horafin ||(hora == horafin && min <= minfin))) {
optimo= -(11/10*texterno)+55;
- if (optimo > 25 ) {
+ if (optimo > 25 && optimo < 65) {
Vres = (optimo*8/100)-2;
pc.printf("Vres= %f\n\r",Vres);
wait(2);
@@ -58,7 +58,7 @@
case 2:
if ((hora > horain||(hora == horain && min >= minin)) && ( hora < horafin ||(hora == horafin && min <= minfin))) {
optimo= -(11/10*texterno)+65;
- if (optimo > 25 ) {
+ if (optimo > 25 && optimo < 65 ) {
Vres = (optimo*8/100)-2;
pc.printf("Vres= %f\n\r",Vres);
wait(2);