Changeset 13946
- Timestamp:
- 05/27/12 21:15:20 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/MainWindow.cc
r13237 r13946 557 557 { 558 558 static const struct Data { int32_t id; char on; } __attribute__((__packed__)) d = { -1, 1 }; 559 Dim::SendCommand("FTM_CONTROL/ENABLE_FTU", &d, sizeof( d));559 Dim::SendCommand("FTM_CONTROL/ENABLE_FTU", &d, sizeof(Data)); 560 560 } 561 561 … … 563 563 { 564 564 static const struct Data { int32_t id; char on; } __attribute__((__packed__)) d = { -1, 0 }; 565 Dim::SendCommand("FTM_CONTROL/ENABLE_FTU", &d, sizeof( d));565 Dim::SendCommand("FTM_CONTROL/ENABLE_FTU", &d, sizeof(Data)); 566 566 } 567 567 … … 694 694 return; 695 695 696 const struct { uint16_t ch; float val; } __attribute__((__packed__)) val = {696 const struct Data { uint16_t ch; float val; } __attribute__((__packed__)) val = { 697 697 uint16_t(fBiasHvBoard->value()*32+fBiasHvChannel->value()), 698 698 float(fBiasVolt->value()) 699 699 }; 700 700 701 Dim::SendCommand("BIAS_CONTROL/SET_CHANNEL_VOLTAGE", val);701 Dim::SendCommand("BIAS_CONTROL/SET_CHANNEL_VOLTAGE", &val, sizeof(Data)); 702 702 } 703 703 … … 733 733 return; 734 734 735 const struct { uint16_t ch; float val; } __attribute__((__packed__)) val = {735 const struct Data { uint16_t ch; float val; } __attribute__((__packed__)) val = { 736 736 uint16_t(fBiasHvBoard->value()*32+fBiasHvChannel->value()), 737 737 float(fBiasOffsetVolt->value()) 738 738 }; 739 739 740 Dim::SendCommand("BIAS_CONTROL/INCREASE_CHANNEL_VOLTAGE", val);740 Dim::SendCommand("BIAS_CONTROL/INCREASE_CHANNEL_VOLTAGE", &val, sizeof(Data)); 741 741 } 742 742 … … 760 760 return; 761 761 762 const struct { uint16_t ch; float val; } __attribute__((__packed__)) val = {762 const struct Data { uint16_t ch; float val; } __attribute__((__packed__)) val = { 763 763 uint16_t(fBiasHvBoard->value()*32+fBiasHvChannel->value()), 764 764 float(fBiasOffsetVolt->value()) 765 765 }; 766 766 767 Dim::SendCommand("BIAS_CONTROL/SET_CHANNEL_OFFSET", val);767 Dim::SendCommand("BIAS_CONTROL/SET_CHANNEL_OFFSET", &val, sizeof(Data)); 768 768 } 769 769
Note:
See TracChangeset
for help on using the changeset viewer.