From 2d86c84ac3877ca0a6fc2cf857636f23acc14485 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 9 Jul 2019 09:14:30 +0200 Subject: Minor FIG2 changes --- src/fig2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/fig2.cpp b/src/fig2.cpp index 97622c8..6346300 100644 --- a/src/fig2.cpp +++ b/src/fig2.cpp @@ -66,7 +66,7 @@ static void handle_ext_label_data_field(fig2_common_t& fig2, ensemble_database:: const uint8_t rfa = (f[0] & 0x0F); r.msgs.push_back(strprintf("rfa=%d", rfa)); const uint16_t char_flag = f[1] * 256 + f[2]; - r.msgs.push_back(strprintf("character flag=%d", char_flag)); + r.msgs.push_back(strprintf("character flag=%04x", char_flag)); if (len_bytes <= 3) { throw runtime_error("FIG2 label length too short"); @@ -78,7 +78,7 @@ static void handle_ext_label_data_field(fig2_common_t& fig2, ensemble_database:: else { // ETSI TS 103 176 draft V2.2.1 (2018-08) gives a new meaning to rfu const uint8_t text_control = (f[0] & 0x0F); - r.msgs.push_back(strprintf("character flag=0x%02x", text_control)); + r.msgs.push_back(strprintf("text control=0x%02x", text_control)); if (len_bytes <= 1) { throw runtime_error("FIG2 label length too short"); -- cgit v1.2.3