From 717ee88081151259b4a2487677d01ca61f207bc7 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 10 Sep 2016 15:08:43 +0200 Subject: Print REPLIE signal --- src/common/src/Core/main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/common') diff --git a/src/common/src/Core/main.c b/src/common/src/Core/main.c index 236fd1e..d41f6ca 100644 --- a/src/common/src/Core/main.c +++ b/src/common/src/Core/main.c @@ -471,6 +471,7 @@ static void exercise_fsm(void __attribute__ ((unused))*pvParameters) int last_cw_done = 0; int last_discrim_d = 0; int last_discrim_u = 0; + int last_wind_generator_ok = 0; fsm_input.humidity = 0; fsm_input.temp = 15; @@ -503,6 +504,10 @@ static void exercise_fsm(void __attribute__ ((unused))*pvParameters) last_discrim_u = fsm_input.discrim_u; usart_debug("In U %d\r\n", last_discrim_u); } + if (last_wind_generator_ok != fsm_input.wind_generator_ok) { + last_wind_generator_ok = fsm_input.wind_generator_ok; + usart_debug("In eolienne %s\r\n", last_wind_generator_ok ? "vent" : "replie"); + } if (tm_trigger_button == 1 && last_tm_trigger_button == 0) { // Do something if you want. This currently does nothing. -- cgit v1.2.3