From 27e489a4b40a139ace3c679215e44f109f006127 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 17 Jun 2017 07:50:31 +0200 Subject: Use enum for transmission mode --- src/utils.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/utils.cpp') 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& 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); -- cgit v1.2.3