trx/txtime_setter: print error if reference fn is missing

Change-Id: I2a6e3f41b6fe79b92d85ff98bc2cd9afd9bdc568
diff --git a/lib/transmitter/txtime_setter_impl.cc b/lib/transmitter/txtime_setter_impl.cc
index 50092f4..9f3a24d 100644
--- a/lib/transmitter/txtime_setter_impl.cc
+++ b/lib/transmitter/txtime_setter_impl.cc
@@ -116,9 +116,6 @@
 
     void txtime_setter_impl::process_txtime_of_burst(pmt::pmt_t msg_in)
     {
-      if (d_fn_ref == UNKNOWN_FN)
-        return;
-
       pmt::pmt_t blob = pmt::cdr(msg_in);
 
       // Extract GSMTAP header from message
@@ -126,6 +123,13 @@
       uint32_t frame_nr = be32toh(header->frame_number);
       uint32_t ts_num = header->timeslot;
 
+      if (d_fn_ref == UNKNOWN_FN) {
+        std::cout << "Missing reference TDMA frame number, dropping "
+                  << format("burst (fn=%u, tn=%u)", frame_nr, ts_num)
+                  << std::endl;
+        return;
+      }
+
       time_format txtime = fn_time_delta_cpp(d_fn_ref, d_time_ref,
         frame_nr, d_time_hint, ts_num, d_ts_ref);