diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-06-25 00:00:02 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-06-25 00:00:02 +0200 |
commit | 04cf37f8b416b13484823bb4761928964dcc8b30 (patch) | |
tree | 61b41bccc0344cf15b05e2ceb6a26a3a4abaf570 | |
parent | 75bd5a32876ffa79dcc39a884a474b73fd48ed16 (diff) | |
download | glutte-o-matic-04cf37f8b416b13484823bb4761928964dcc8b30.tar.gz glutte-o-matic-04cf37f8b416b13484823bb4761928964dcc8b30.tar.bz2 glutte-o-matic-04cf37f8b416b13484823bb4761928964dcc8b30.zip |
Do not time-trig BALISE in the first minute
-rw-r--r-- | src/common/src/Core/main.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/common/src/Core/main.c b/src/common/src/Core/main.c index f3c1057..10f87f3 100644 --- a/src/common/src/Core/main.c +++ b/src/common/src/Core/main.c @@ -457,7 +457,12 @@ static void exercise_fsm(void __attribute__ ((unused))*pvParameters) } last_tm_trigger_button = tm_trigger_button; - if (tm_trigger == 1 && last_tm_trigger == 0) { + /* Do not time-trigger BALISE if + * the trigger occurs in the first minute, + * or if we happen to start up in an even hour + */ + if ( timestamp_now() > 60 * 1000 && + tm_trigger == 1 && last_tm_trigger == 0) { fsm_input.start_tm = 1; } last_tm_trigger = tm_trigger; @@ -465,7 +470,7 @@ static void exercise_fsm(void __attribute__ ((unused))*pvParameters) int cw_done = !cw_psk31_busy(); if (last_cw_done != cw_done) { - // On fait le switch du cw_done vers 1 QUE si les buffers audio ont été flusés + // On fait le switch du cw_done vers 1 QUE si les buffers audio ont été flushés if (!cw_done || only_zero_in_audio_buffer) { usart_debug("In CW done %d\r\n", cw_done); last_cw_done = cw_done; |