hardware bug found, sorry

This commit is contained in:
phyto
2019-05-15 17:22:44 +02:00
parent 7a3ba3b44c
commit 946616e55a
4 changed files with 22 additions and 6 deletions

View File

@@ -9,7 +9,6 @@
#define DEBUG 0
/* -------------------------------------------------- */
/* some interesting macros */
/* -------------------------------------------------- */
char waitkey(char echo)
@@ -127,7 +126,18 @@ else {
prtln("M frigo OFF");
digitalWrite(RELAIS_FRIGO, LOW);
}
prtln("...");
}
/* --------------------------------------------------------------- */
void controle_ventilo(char on_off)
{
if (on_off) {
prtln("M ventilo ON");
digitalWrite(RELAIS_VENTILO, HIGH);
}
else {
prtln("M ventilo OFF");
digitalWrite(RELAIS_VENTILO, LOW);
}
}
/* --------------------------------------------------------------- */

View File

@@ -41,6 +41,8 @@ from->control++;
EEPROM.put(0, *from);
/* no check of good write here ? */
return -1;
}
/* --------------------------------------------------------------- */