Index: trunk/FACT++/gui/MainWindow.cc
===================================================================
--- trunk/FACT++/gui/MainWindow.cc	(revision 13945)
+++ trunk/FACT++/gui/MainWindow.cc	(revision 13946)
@@ -557,5 +557,5 @@
 {
     static const struct Data { int32_t id; char on; } __attribute__((__packed__)) d = { -1, 1 };
-    Dim::SendCommand("FTM_CONTROL/ENABLE_FTU", &d, sizeof(d));
+    Dim::SendCommand("FTM_CONTROL/ENABLE_FTU", &d, sizeof(Data));
 }
 
@@ -563,5 +563,5 @@
 {
     static const struct Data { int32_t id; char on; } __attribute__((__packed__)) d = { -1, 0 };
-    Dim::SendCommand("FTM_CONTROL/ENABLE_FTU", &d, sizeof(d));
+    Dim::SendCommand("FTM_CONTROL/ENABLE_FTU", &d, sizeof(Data));
 }
 
@@ -694,10 +694,10 @@
         return;
 
-    const struct { uint16_t ch; float val; } __attribute__((__packed__)) val = {
+    const struct Data { uint16_t ch; float val; } __attribute__((__packed__)) val = {
         uint16_t(fBiasHvBoard->value()*32+fBiasHvChannel->value()),
         float(fBiasVolt->value())
     };
 
-    Dim::SendCommand("BIAS_CONTROL/SET_CHANNEL_VOLTAGE", val);
+    Dim::SendCommand("BIAS_CONTROL/SET_CHANNEL_VOLTAGE", &val, sizeof(Data));
 }
 
@@ -733,10 +733,10 @@
         return;
 
-    const struct { uint16_t ch; float val; } __attribute__((__packed__)) val = {
+    const struct Data { uint16_t ch; float val; } __attribute__((__packed__)) val = {
         uint16_t(fBiasHvBoard->value()*32+fBiasHvChannel->value()),
         float(fBiasOffsetVolt->value())
     };
 
-    Dim::SendCommand("BIAS_CONTROL/INCREASE_CHANNEL_VOLTAGE", val);
+    Dim::SendCommand("BIAS_CONTROL/INCREASE_CHANNEL_VOLTAGE", &val, sizeof(Data));
 }
 
@@ -760,10 +760,10 @@
         return;
 
-    const struct { uint16_t ch; float val; } __attribute__((__packed__)) val = {
+    const struct Data { uint16_t ch; float val; } __attribute__((__packed__)) val = {
         uint16_t(fBiasHvBoard->value()*32+fBiasHvChannel->value()),
         float(fBiasOffsetVolt->value())
     };
 
-    Dim::SendCommand("BIAS_CONTROL/SET_CHANNEL_OFFSET", val);
+    Dim::SendCommand("BIAS_CONTROL/SET_CHANNEL_OFFSET", &val, sizeof(Data));
 }
 
