projects
/
svn42.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added ajar sensor to messages doc
[svn42.git]
/
firmware
/
tuer.pde
diff --git
a/firmware/tuer.pde
b/firmware/tuer.pde
index
c4bfcb4
..
cd4b576
100644
(file)
--- a/
firmware/tuer.pde
+++ b/
firmware/tuer.pde
@@
-549,6
+549,7
@@
void setup()
current_state = CLOSING;
start_step_timer();
}
current_state = CLOSING;
start_step_timer();
}
+ Serial.println("init complete");
}
void loop()
}
void loop()
@@
-564,8
+565,8
@@
void loop()
}
else if (command == CMD_OPEN) {
if(current_state == IDLE) {
}
else if (command == CMD_OPEN) {
if(current_state == IDLE) {
- if(is_opened())
- Serial.println("Already open");
+ if(is_opened())
+ Serial.println("Already open");
else {
start_open();
Serial.println("Ok");
else {
start_open();
Serial.println("Ok");
@@
-576,8
+577,8
@@
void loop()
}
else if (command == CMD_CLOSE) {
if(current_state == IDLE) {
}
else if (command == CMD_CLOSE) {
if(current_state == IDLE) {
- if(is_closed())
- Serial.println("Already closed");
+ if(is_closed())
+ Serial.println("Already closed");
else {
start_close();
Serial.println("Ok");
else {
start_close();
Serial.println("Ok");
@@
-588,11
+589,11
@@
void loop()
}
else if (command == CMD_TOGGLE) {
if(current_state == IDLE) {
}
else if (command == CMD_TOGGLE) {
if(current_state == IDLE) {
- if(is_closed())
- start_open();
- else
- start_close();
- Serial.println("Ok");
+ if(is_closed())
+ start_open();
+ else
+ start_close();
+ Serial.println("Ok");
}
else
Serial.println("Error: Operation in progress");
}
else
Serial.println("Error: Operation in progress");