aboutsummaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2020-11-16 07:47:06 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2020-11-16 07:48:04 +0100
commite1cb67c6ce1b260582a87e0cf61ebfd29067febd (patch)
tree3c83988c07cdfbe9780fdee27b9a68cd27591e31 /src/common
parent62d0dc6f1383ca8a6ed359bf5e3728439fb98d8d (diff)
downloadglutte-o-matic-e1cb67c6ce1b260582a87e0cf61ebfd29067febd.tar.gz
glutte-o-matic-e1cb67c6ce1b260582a87e0cf61ebfd29067febd.tar.bz2
glutte-o-matic-e1cb67c6ce1b260582a87e0cf61ebfd29067febd.zip
FSM: Add temperature to QRP balise
Diffstat (limited to 'src/common')
-rw-r--r--src/common/Core/fsm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/Core/fsm.c b/src/common/Core/fsm.c
index f34b636..52ec8cb 100644
--- a/src/common/Core/fsm.c
+++ b/src/common/Core/fsm.c
@@ -639,6 +639,12 @@ void fsm_update() {
" %d AH ", capacity_bat_ah);
}
+ if (temperature_valid()) {
+ len += snprintf(balise_message + len, BALISE_MESSAGE_LEN-len-1,
+ " T %d ",
+ (int)(round_float_to_half_steps(temperature_get())));
+ }
+
len += snprintf(balise_message+len, BALISE_MESSAGE_LEN-len-1,
"%s" CW_POSTDELAY,
eol_info);