summaryrefslogtreecommitdiffstats
path: root/src/DabMux.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-04-11 09:51:16 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-04-11 09:51:16 +0200
commit3e53747724c6e01bd0be17aaa9461c884fb821e7 (patch)
tree9c67b63bfa5ed992aaac6f086aeab7dc95b510c2 /src/DabMux.cpp
parent7832faf05ccf5253ef27e560a8ac823446b95efc (diff)
downloaddabmux-3e53747724c6e01bd0be17aaa9461c884fb821e7.tar.gz
dabmux-3e53747724c6e01bd0be17aaa9461c884fb821e7.tar.bz2
dabmux-3e53747724c6e01bd0be17aaa9461c884fb821e7.zip
Add local-time-offset to remote control
Diffstat (limited to 'src/DabMux.cpp')
-rw-r--r--src/DabMux.cpp12
1 files changed, 11 insertions, 1 deletions
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;