Index: trunk/FACT++/src/ratecontrol.cc
===================================================================
--- trunk/FACT++/src/ratecontrol.cc	(revision 16448)
+++ trunk/FACT++/src/ratecontrol.cc	(revision 16449)
@@ -147,5 +147,5 @@
 
         const uint32_t val[2] = { idx,  diff };
-        DimClient::sendCommandNB("FTM_CONTROL/SET_THRESHOLD", (void*)val, 8);
+        Dim::SendCommandNB("FTM_CONTROL/SET_THRESHOLD", val);
 
         fBlock[idx/4] = true;
@@ -348,5 +348,5 @@
 
         const uint32_t val[2] = { -1,  diff };
-        DimClient::sendCommandNB("FTM_CONTROL/SET_THRESHOLD", (void*)val, 8);
+        DimClient::SendCommandNB("FTM_CONTROL/SET_THRESHOLD", val);
 
         fThresholdMin = diff;
@@ -492,6 +492,8 @@
         fThresholds.assign(160, fThresholdMin);
 
+        int counter = 1;
+
         const int32_t val[2] = { -1, fThresholdMin };
-        Dim::SendCommand("FTM_CONTROL/SET_THRESHOLD", val);
+        Dim::SendCommandNB("FTM_CONTROL/SET_THRESHOLD", val);
 
         double avg2 = 0;
@@ -506,7 +508,9 @@
 
                 const int32_t dat[2] = { i, fThresholds[i] };
-                Dim::SendCommand("FTM_CONTROL/SET_THRESHOLD", dat);
+                Dim::SendCommandNB("FTM_CONTROL/SET_THRESHOLD", dat);
 
                 fBlock[i/4] = true;
+
+                counter++;
             }
         }
@@ -517,4 +521,6 @@
         fDimThreshold.setQuality(2);
         fDimThreshold.Update(data);
+
+        Info("Sent a total of "+to_string(counter)+" commands for threshold setting");
 
         ostringstream out;
@@ -535,5 +541,5 @@
 
         const int32_t val[2] = { -1, fThresholdReference };
-        Dim::SendCommand("FTM_CONTROL/SET_THRESHOLD", val);
+        Dim::sendCommandNB("FTM_CONTROL/SET_THRESHOLD", val);
 
         fThresholds.assign(160, fThresholdReference);
