diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-06-17 07:50:31 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-06-17 07:50:31 +0200 |
commit | 27e489a4b40a139ace3c679215e44f109f006127 (patch) | |
tree | 239a8385c059dc9176270fe993276107adaa537e /src/utils.cpp | |
parent | 02bdb2a0eedbb3ffd4870df0c0e69fd5dbcec856 (diff) | |
download | dabmux-27e489a4b40a139ace3c679215e44f109f006127.tar.gz dabmux-27e489a4b40a139ace3c679215e44f109f006127.tar.bz2 dabmux-27e489a4b40a139ace3c679215e44f109f006127.zip |
Use enum for transmission mode
Diffstat (limited to 'src/utils.cpp')
-rw-r--r-- | src/utils.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/utils.cpp b/src/utils.cpp index cfbe13b..8b4de67 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -494,7 +494,20 @@ void printEnsemble(const shared_ptr<dabEnsemble>& ensemble) ensemble->label.short_label(); etiLog.log(info, " (0x%x)", ensemble->label.flag()); - etiLog.log(info, " mode: %u", ensemble->mode); + switch (ensemble->transmission_mode) { + case TransmissionMode_e::TM_I: + etiLog.log(info, " mode: TM I"); + break; + case TransmissionMode_e::TM_II: + etiLog.log(info, " mode: TM II"); + break; + case TransmissionMode_e::TM_III: + etiLog.log(info, " mode: TM III"); + break; + case TransmissionMode_e::TM_IV: + etiLog.log(info, " mode: TM IV"); + break; + } if (ensemble->lto_auto) { time_t now = time(nullptr); |