aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-05-10 08:41:47 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-05-10 09:03:08 +0200
commit50d8a7ab5b2125613779242040c723791cc5888d (patch)
tree7fad28969f86f2cf9d9926d7f125a5a4be510f20 /src
parent0d37481b47f769c8f672055d6b08d27537acdb66 (diff)
downloadglutte-o-matic-50d8a7ab5b2125613779242040c723791cc5888d.tar.gz
glutte-o-matic-50d8a7ab5b2125613779242040c723791cc5888d.tar.bz2
glutte-o-matic-50d8a7ab5b2125613779242040c723791cc5888d.zip
Modify orange LED usage
Diffstat (limited to 'src')
-rw-r--r--src/common/src/Core/main.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/common/src/Core/main.c b/src/common/src/Core/main.c
index 17c9ef1..29fe58e 100644
--- a/src/common/src/Core/main.c
+++ b/src/common/src/Core/main.c
@@ -569,6 +569,7 @@ static void exercise_fsm(void __attribute__ ((unused))*pvParameters)
if (cw_done) {
fsm_input.cw_psk31_done = cw_done;
+ leds_turn_off(LED_ORANGE);
}
last_cw_done = cw_done;
@@ -577,12 +578,6 @@ static void exercise_fsm(void __attribute__ ((unused))*pvParameters)
fsm_input.cw_psk31_done = 0;
}
- if (fsm_input.cw_psk31_done) {
- leds_turn_off(LED_ORANGE);
- }
- else {
- leds_turn_on(LED_ORANGE);
- }
#ifdef SIMULATOR
gui_in_tone_1750 =
@@ -609,7 +604,7 @@ static void exercise_fsm(void __attribute__ ((unused))*pvParameters)
if (fsm_out.cw_psk31_trigger && !cw_last_trigger) {
cw_psk31_push_message(fsm_out.msg, fsm_out.cw_dit_duration, fsm_out.msg_frequency);
- usart_debug_puts("Out CW trigger\r\n");
+ leds_turn_on(LED_ORANGE);
}
cw_last_trigger = fsm_out.cw_psk31_trigger;