From: realraum Date: Thu, 30 Apr 2009 04:12:29 +0000 (+0000) Subject: sending status message after successful open/close X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=138139e389ccc8acd4a9b26df3ef073fd9d3d2bf;p=svn42.git sending status message after successful open/close --- 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) {