diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2024-06-09 12:06:48 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2024-06-09 12:06:48 +0200 |
commit | 5b35713111c38108f3560595a0a428836ec6e749 (patch) | |
tree | be5d907080dfc5417668d41cc1f1aba8a09d898e /src/DabMultiplexer.h | |
parent | b6d001cc5c586313deba7f5eae48274f26c0e5d3 (diff) | |
download | dabmux-5b35713111c38108f3560595a0a428836ec6e749.tar.gz dabmux-5b35713111c38108f3560595a0a428836ec6e749.tar.bz2 dabmux-5b35713111c38108f3560595a0a428836ec6e749.zip |
Make MNSC compatible with Easydabv2 again
Diffstat (limited to 'src/DabMultiplexer.h')
-rw-r--r-- | src/DabMultiplexer.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/DabMultiplexer.h b/src/DabMultiplexer.h index 44155dc..89d547e 100644 --- a/src/DabMultiplexer.h +++ b/src/DabMultiplexer.h @@ -88,7 +88,19 @@ class DabMultiplexer : public RemoteControllable { uint32_t m_timestamp = 0; std::time_t m_edi_time = 0; - std::time_t m_edi_time_latched_for_mnsc = 0; + + /* Pre v3 odr-dabmux did the MNSC calculation differently, + * which works with the easydabv2. The rework in odr-dabmux, + * deriving MNSC time from EDI time broke this. + * + * That's why we're now tracking MNSC time in separate variables, + * to get the same behaviour back. + * + * I'm not aware of any devices using MNSC time besides the + * easydab. ODR-DabMod now considers EDI seconds or ZMQ metadata. + */ + bool mnsc_increment_time = false; + std::time_t mnsc_time = 0; edi::configuration_t edi_conf; std::shared_ptr<edi::Sender> edi_sender; |