From 3e53747724c6e01bd0be17aaa9461c884fb821e7 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 11 Apr 2014 09:51:16 +0200 Subject: Add local-time-offset to remote control --- src/DabMux.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/DabMux.cpp') diff --git a/src/DabMux.cpp b/src/DabMux.cpp index 275175b..734643c 100644 --- a/src/DabMux.cpp +++ b/src/DabMux.cpp @@ -354,6 +354,10 @@ int main(int argc, char *argv[]) global_stats = new StatsServer(); } + if (rc) { + ensemble->enrol_at(*rc); + } + etiLog.level(info) << PACKAGE_NAME << " " << @@ -1627,7 +1631,13 @@ int main(int argc, char *argv[]) fig0_9->ext = 0; fig0_9->lto = 0; // Unique LTO for ensemble - fig0_9->ensembleLto = ensemble->lto; + if (ensemble->lto >= 0) { + fig0_9->ensembleLto = ensemble->lto; + } + else { + /* Convert to 1-complement representation */ + fig0_9->ensembleLto = (-ensemble->lto) | (1<<5); + } fig0_9->ensembleEcc = ensemble->ecc; fig0_9->tableId = ensemble->international_table; index += 5; -- cgit v1.2.3