aboutsummaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-06-07 21:33:17 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-06-07 21:33:17 +0200
commitbe81a4914e8511dc105aec2d691be61ce84cfb4d (patch)
tree0cd7d30a38c60964f6855026dbd41c58589ea925 /src/common
parentb77e140771b5842e532705e0cd720b6d59dc9972 (diff)
downloadglutte-o-matic-be81a4914e8511dc105aec2d691be61ce84cfb4d.tar.gz
glutte-o-matic-be81a4914e8511dc105aec2d691be61ce84cfb4d.tar.bz2
glutte-o-matic-be81a4914e8511dc105aec2d691be61ce84cfb4d.zip
Keep audio always on
Diffstat (limited to 'src/common')
-rw-r--r--src/common/src/Core/main.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/common/src/Core/main.c b/src/common/src/Core/main.c
index 125671f..149487a 100644
--- a/src/common/src/Core/main.c
+++ b/src/common/src/Core/main.c
@@ -398,6 +398,9 @@ static void exercise_fsm(void __attribute__ ((unused))*pvParameters)
fsm_input.swr_high = 0;
fsm_input.sstv_mode = 0;
fsm_input.wind_generator_ok = 1;
+
+ audio_on();
+
while (1) {
vTaskDelay(10 / portTICK_RATE_MS);
@@ -452,12 +455,6 @@ static void exercise_fsm(void __attribute__ ((unused))*pvParameters)
fsm_get_outputs(&fsm_out);
pio_set_tx(fsm_out.tx_on);
- if (fsm_out.tx_on) {
- audio_on();
- }
- else {
- audio_off();
- }
pio_set_mod_off(!fsm_out.modulation);
pio_set_qrp(fsm_out.qrp); // TODO move out of FSM