summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--digital/io/src/asserv.c2
-rw-r--r--digital/io/src/top_cb.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/digital/io/src/asserv.c b/digital/io/src/asserv.c
index b6910275..4b3a5795 100644
--- a/digital/io/src/asserv.c
+++ b/digital/io/src/asserv.c
@@ -53,7 +53,7 @@ static uint8_t asserv_twi_seq;
/**
* Shared buffer used to send commands to the asserv.
*/
-static uint8_t asserv_twi_buffer[7];
+static uint8_t asserv_twi_buffer[14];
/**
* Pointer to access the buffer to put the parameters list.
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);
}