Index: trunk/BNC/combination/bnccomb.cpp
===================================================================
--- trunk/BNC/combination/bnccomb.cpp	(revision 3338)
+++ trunk/BNC/combination/bnccomb.cpp	(revision 3339)
@@ -368,16 +368,28 @@
   // -------------------------------
   if (epochs.first()->acName != _masterAC) {
-    QListIterator<cmbEpoch*> itEpo(epochs);
-    while (itEpo.hasNext()) {
-      cmbEpoch* epo = itEpo.next();
+    if (true) {  // version with master switch
+      cmbEpoch* epo     = epochs.first();
       bncTime   epoTime = epo->time;
-      out << epo->acName.toAscii().data() << " " 
+      out << "Switching Master AC "
+          << epo->acName.toAscii().data() << " --> " 
+          << _masterAC.toAscii().data()   << " " 
           << epoTime.datestr().c_str()    << " " 
-          << epoTime.timestr().c_str() << endl;
-      delete epo;
-    }
-    out << "Missing Master AC" << endl;
-    emit newMessage(_log, false);
-    return;
+          << epoTime.timestr().c_str()    << endl;
+      _masterAC = epo->acName;
+    }
+    else {       // original version
+      QListIterator<cmbEpoch*> itEpo(epochs);
+      while (itEpo.hasNext()) {
+        cmbEpoch* epo = itEpo.next();
+        bncTime   epoTime = epo->time;
+        out << epo->acName.toAscii().data() << " " 
+            << epoTime.datestr().c_str()    << " " 
+            << epoTime.timestr().c_str() << endl;
+        delete epo;
+      }
+      out << "Missing Master AC" << endl;
+      emit newMessage(_log, false);
+      return;
+    }
   }
 
