diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2025-04-23 11:18:08 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2025-04-23 11:18:08 +0200 |
commit | 103841bc578888a828d176eddfdd9fa345549f03 (patch) | |
tree | 6e4f14251adf2b1d6249f2b030aacec7e759b1fd /src/fig/FIG0_10.cpp | |
parent | 397905cb5079205e2a4bb64cca35517e60c01a58 (diff) | |
download | dabmux-103841bc578888a828d176eddfdd9fa345549f03.tar.gz dabmux-103841bc578888a828d176eddfdd9fa345549f03.tar.bz2 dabmux-103841bc578888a828d176eddfdd9fa345549f03.zip |
Rework FIG0/10 DAB time indication to match EDI time
Diffstat (limited to 'src/fig/FIG0_10.cpp')
-rw-r--r-- | src/fig/FIG0_10.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/fig/FIG0_10.cpp b/src/fig/FIG0_10.cpp index 56ce9fb..240aa19 100644 --- a/src/fig/FIG0_10.cpp +++ b/src/fig/FIG0_10.cpp @@ -3,7 +3,7 @@ 2011, 2012 Her Majesty the Queen in Right of Canada (Communications Research Center Canada) - Copyright (C) 2016 + Copyright (C) 2025 Matthias P. Braendli, matthias.braendli@mpb.li */ /* @@ -23,7 +23,6 @@ along with ODR-DabMux. If not, see <http://www.gnu.org/licenses/>. */ -#include "fig/FIG0structs.h" #include "fig/FIG0_10.h" #include "utils.h" @@ -89,7 +88,7 @@ FillStatus FIG0_10::fill(uint8_t *buf, size_t max_size) return fs; } - //Time and country identifier + // Time and country identifier auto fig0_10 = (FIGtype0_10_LongForm*)buf; fig0_10->FIGtypeNumber = 0; @@ -102,9 +101,9 @@ FillStatus FIG0_10::fill(uint8_t *buf, size_t max_size) remaining -= 2; struct tm timeData; - time_t dab_time_seconds = 0; - uint32_t dab_time_millis = 0; - get_dab_time(&dab_time_seconds, &dab_time_millis); + const auto dab_time = m_rti->getTimeFunc(); + time_t dab_time_seconds = dab_time.second; + uint32_t dab_time_millis = dab_time.first; gmtime_r(&dab_time_seconds, &timeData); fig0_10->RFU = 0; |