sending status message after successful open/close
authorrealraum <realraum@realraum.at>
Thu, 30 Apr 2009 04:12:29 +0000 (04:12 +0000)
committerrealraum <realraum@realraum.at>
Thu, 30 Apr 2009 04:12:29 +0000 (04:12 +0000)
firmware/tuer.pde

index 7b2b4a0..ddf8ba3 100644 (file)
@@ -359,6 +359,12 @@ ISR(TIMER1_COMPA_vect)
     stop_timer();
     reset_stepper();
     current_state = IDLE;
+    Serial.print("Status: ");
+    if(is_opened())
+      Serial.print("opened");
+    else if(is_closed())
+      Serial.print("closed");
+    Serial.println(", idle");
     return;
   }
   else if(current_state == ERROR) {