diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-09-10 15:08:43 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-09-10 15:08:43 +0200 |
commit | 717ee88081151259b4a2487677d01ca61f207bc7 (patch) | |
tree | 4fd188ed7207b9fa3541b2670ca50ea51c896918 /src/common | |
parent | 73e1e41de7861fd5dce6dc83984385e3e4617b82 (diff) | |
download | glutte-o-matic-717ee88081151259b4a2487677d01ca61f207bc7.tar.gz glutte-o-matic-717ee88081151259b4a2487677d01ca61f207bc7.tar.bz2 glutte-o-matic-717ee88081151259b4a2487677d01ca61f207bc7.zip |
Print REPLIE signal
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/src/Core/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
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. |