diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2020-10-30 12:56:47 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2020-10-30 12:56:47 +0100 |
commit | a894522a888a88dcba7988560776a386a20413a5 (patch) | |
tree | aabdfe2c5b39251fe737fe75ea6fcb3da696c33c /src | |
parent | 9af7039353c25b8a24861491cdfac81353b86ef7 (diff) | |
download | glutte-o-matic-a894522a888a88dcba7988560776a386a20413a5.tar.gz glutte-o-matic-a894522a888a88dcba7988560776a386a20413a5.tar.bz2 glutte-o-matic-a894522a888a88dcba7988560776a386a20413a5.zip |
Handle batterycharge_wind_disconnected() returning -1
Diffstat (limited to 'src')
-rw-r--r-- | src/common/Core/fsm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/Core/fsm.c b/src/common/Core/fsm.c index 928882f..e2c5002 100644 --- a/src/common/Core/fsm.c +++ b/src/common/Core/fsm.c @@ -482,7 +482,7 @@ void fsm_update() { if (current_state == FSM_BALISE_STATS1) { eol_info = "PSK125"; } - else if (batterycharge_wind_disconnected()) { + else if (batterycharge_wind_disconnected() == 1) { eol_info = "EOL \\"; // backslash is <SK> } else if (!fsm_in.wind_generator_ok) { @@ -559,7 +559,7 @@ void fsm_update() { // All predecessor states must NULL the fsm_out.msg field! if (fsm_out.msg == NULL) { - fsm_out.msg = stats_build_text(batterycharge_wind_disconnected()); + fsm_out.msg = stats_build_text(batterycharge_wind_disconnected() == 1); } fsm_out.cw_psk_trigger = 1; @@ -585,7 +585,7 @@ void fsm_update() { if (balise_message_empty()) { const char *eol_info = "73"; - if (batterycharge_wind_disconnected()) { + if (batterycharge_wind_disconnected() == 1) { eol_info = "EOL \\"; // backslash is <SK> } else if (!fsm_in.wind_generator_ok) { @@ -620,7 +620,7 @@ void fsm_update() { if (current_state == FSM_BALISE_SPECIALE_STATS1) { eol_info = "PSK125"; } - else if (batterycharge_wind_disconnected()) { + else if (batterycharge_wind_disconnected() == 1) { eol_info = "EOL \\"; // backslash is <SK> } else if (!fsm_in.wind_generator_ok) { |