summaryrefslogtreecommitdiff
path: root/digital/io/src/top_cb.c
diff options
context:
space:
mode:
authorJérémy Dufour2008-04-25 01:41:43 +0200
committerJérémy Dufour2008-04-25 01:41:43 +0200
commit833066f91ec3889e8ccd496c5268f15ce1174819 (patch)
treeae7050f5307d809697fc739f1b3414e285faac2a /digital/io/src/top_cb.c
parent9343677bdbce9946a9eca92460d9d45a4ce5463d (diff)
* digital/io/src
- correct twi buffer length (thanks to ni) ; - close rear panel when inserting the jack.
Diffstat (limited to 'digital/io/src/top_cb.c')
-rw-r--r--digital/io/src/top_cb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/digital/io/src/top_cb.c b/digital/io/src/top_cb.c
index f4f44f0b..e1fef778 100644
--- a/digital/io/src/top_cb.c
+++ b/digital/io/src/top_cb.c
@@ -30,6 +30,7 @@
#include "playground.h" /* PG_* */
#include "asserv.h" /* asserv_* */
#include "chrono.h" /* chrono_init */
+#include "trap.h" /* trap_close_rear_panel */
/* AVR include, non HOST */
#ifndef HOST
# include "switch.h" /* switch_get_color */
@@ -242,6 +243,9 @@ top__GET_ICE_FROM_ADVERSE_ICE_DISTRIBUTOR__get_samples_fsm_finished (void)
fsm_branch_t
top__WAIT_JACK_IN__jack_inserted_into_bot (void)
{
+ /* TODO: move the arm to reset to 0 */
+ /* Close the rear panel */
+ trap_close_rear_panel ();
return top_next (WAIT_JACK_IN, jack_inserted_into_bot);
}