diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-09-03 23:36:53 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-09-03 23:36:53 +0200 |
commit | 0a69ff868a51c8dca558ea38fbcc1d0055562a59 (patch) | |
tree | ad8a00a22ca03c0096382787fb5d5f8d5a823328 | |
parent | 0c7c03ba34d9abe39dff4a8000b8f03b1c3e915d (diff) | |
download | glutte-o-matic-0a69ff868a51c8dca558ea38fbcc1d0055562a59.tar.gz glutte-o-matic-0a69ff868a51c8dca558ea38fbcc1d0055562a59.tar.bz2 glutte-o-matic-0a69ff868a51c8dca558ea38fbcc1d0055562a59.zip |
FSM: switch to OPEN1 only with 1750
-rw-r--r-- | src/common/src/Core/fsm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/src/Core/fsm.c b/src/common/src/Core/fsm.c index a461408..5c93d0d 100644 --- a/src/common/src/Core/fsm.c +++ b/src/common/src/Core/fsm.c @@ -188,7 +188,7 @@ void fsm_update() { } } - if (fsm_in.tone_1750 && fsm_in.sq) { + if (fsm_in.tone_1750) { next_state = FSM_OPEN1; } else if (fsm_in.start_tm) { @@ -210,7 +210,7 @@ void fsm_update() { /* Do not enable TX_ON here, otherwise we could get stuck transmitting * forever if SQ never goes low. */ - if (!fsm_in.sq) { + if (!fsm_in.sq && !fsm_in.tone_1750) { next_state = FSM_OPEN2; } break; |