hardware bug found, sorry
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
/* --------------------------------------------------------------- */
|
||||
|
||||
|
||||
@@ -41,6 +41,8 @@ from->control++;
|
||||
|
||||
EEPROM.put(0, *from);
|
||||
|
||||
/* no check of good write here ? */
|
||||
|
||||
return -1;
|
||||
}
|
||||
/* --------------------------------------------------------------- */
|
||||
|
||||
Reference in New Issue
Block a user