From 138139e389ccc8acd4a9b26df3ef073fd9d3d2bf Mon Sep 17 00:00:00 2001 From: realraum Date: Thu, 30 Apr 2009 04:12:29 +0000 Subject: [PATCH] sending status message after successful open/close --- firmware/tuer.pde | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/firmware/tuer.pde b/firmware/tuer.pde index 7b2b4a0..ddf8ba3 100644 --- a/firmware/tuer.pde +++ b/firmware/tuer.pde @@ -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) { -- 1.7.10.4