diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-05-10 08:42:05 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-05-10 09:03:15 +0200 |
commit | b5191a8c7c1764a2a8663775d1c45d25e356e12f (patch) | |
tree | edea751505d34940cbaff4d228afa9587fc6240c /src | |
parent | 50d8a7ab5b2125613779242040c723791cc5888d (diff) | |
download | glutte-o-matic-b5191a8c7c1764a2a8663775d1c45d25e356e12f.tar.gz glutte-o-matic-b5191a8c7c1764a2a8663775d1c45d25e356e12f.tar.bz2 glutte-o-matic-b5191a8c7c1764a2a8663775d1c45d25e356e12f.zip |
Fix SQ2 output to 0
Diffstat (limited to 'src')
-rw-r--r-- | src/common/src/Core/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common/src/Core/main.c b/src/common/src/Core/main.c index 29fe58e..5efbb18 100644 --- a/src/common/src/Core/main.c +++ b/src/common/src/Core/main.c @@ -583,6 +583,10 @@ static void exercise_fsm(void __attribute__ ((unused))*pvParameters) gui_in_tone_1750 = #endif fsm_input.det_1750 = tone_1750_status(); + + // TODO implement a DTMF controlled state machine for setting SQ2 + pio_set_sq2(0); + pio_set_det_1750(fsm_input.det_1750); fsm_input.fax_mode = tone_fax_status(); fsm_input.swr_high = swr_error_flag; @@ -608,8 +612,6 @@ static void exercise_fsm(void __attribute__ ((unused))*pvParameters) } cw_last_trigger = fsm_out.cw_psk31_trigger; -#warning "Do the proper thing with SQ2" - pio_set_sq2((timestamp_now() % 4000) > 2000 ? 1 : 0); } } |